Previous 199869 Revisions Next

r32126 Tuesday 16th September, 2014 at 04:59:46 UTC by Fabio Priuli
ui: fixed crash when loading floppies with no parent software
from softlist (only via internal File Manager, though) [Fabio Priuli]
[src/emu/imagedev]floppy.c

trunk/src/emu/imagedev/floppy.c
r32125r32126
901901         bool has_crc = hash_collection(ROM_GETHASHDATA(romp)).crc(crc);
902902
903903         filename = try_file(astring(swlistdev->list_name()) + PATH_SEPARATOR + astring(swinfo_name), ROM_GETNAME(romp), has_crc, crc);
904         if(filename == "")
904         if(filename == "" && parentname)
905905            filename = try_file(astring(swlist_name) + PATH_SEPARATOR + astring(parentname), ROM_GETNAME(romp), has_crc, crc);
906906         if(filename == "")
907907            filename = try_file(swinfo_name, ROM_GETNAME(romp), has_crc, crc);
908         if(filename == "")
908         if(filename == "" && parentname)
909909            filename = try_file(parentname, ROM_GETNAME(romp), has_crc, crc);
910910         if(filename != "")
911911            break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team