Previous 15994 Revisions Next

r14072 Tuesday 17th January, 2012 at 08:57:30 UTC by Miodrag Milanović
proper fix (nw)
[src/emu/imagedev]cassette.c

src/emu/imagedev/cassette.c
r14071r14072
270270      {
271271         is_writable = !is_readonly();
272272         cassette_flags = is_writable ? (CASSETTE_FLAG_READWRITE|CASSETTE_FLAG_SAVEONEXIT) : CASSETTE_FLAG_READONLY;
273         astring fname;
273274         if (software_entry()==NULL) {
274275            extension = filetype();
275276         } else {
276            astring fname = astring(m_mame_file->filename());
277            fname = m_mame_file->filename();
277278            int loc = fname.rchr(0,'.');
278279            if (loc!=-1) {
279280               extension = fname.substr(loc + 1,fname.len()-loc).cstr();

Previous 15994 Revisions Next


© 1998-2018 The MESS Team