diff options
author | 2020-04-14 22:13:30 +1000 | |
---|---|---|
committer | 2020-04-15 02:20:23 +1000 | |
commit | cf078d736add075a78f488a3ec50c567d1a8fc29 (patch) | |
tree | 3d81c39e4021c7991fbcfe804dc7fd99929bff62 /src/frontend/mame/ui/selmenu.cpp | |
parent | 9341daa9edca31cb55ef3a8b842310bdd79551c5 (diff) |
ROM loading cleanup:
* More flexible constructors for path_iterator and emu_file
* More straightforward system/device ROM loading and software loading when using ROM loader
* Proper parent walk when searching for identical CHDs with different names from software list
* Fixed hangs if software item parents form a loop
* Fixed layouts being loaded from bogus empty paths
Note that there are changes in behaviour:
* For software list ROMs/disks, MAME will now search the software path before searching the machine path
* The search path for the owner of the software list device is used, which may not be the driver itself
* MAME will no longer load loose CHDs from the media path - it's just too unwieldy with the number of supported systems
* MAME will no longer search archives above the top level of the media path
Diffstat (limited to 'src/frontend/mame/ui/selmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/selmenu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/selmenu.cpp b/src/frontend/mame/ui/selmenu.cpp index 4fd71e2798e..92bdd3ada64 100644 --- a/src/frontend/mame/ui/selmenu.cpp +++ b/src/frontend/mame/ui/selmenu.cpp @@ -2282,8 +2282,7 @@ void menu_select_launch::arts_render(float origx1, float origy1, float origx2, f // loads the image if necessary if (!m_cache->snapx_driver_is(driver) || !snapx_valid() || m_switch_image) { - emu_file snapfile(searchstr.c_str(), OPEN_FLAG_READ); - snapfile.set_restrict_to_mediapath(true); + emu_file snapfile(searchstr, OPEN_FLAG_READ); bitmap_argb32 tmp_bitmap; // try to load snapshot first from saved "0000.png" file |