Moved creation roms list where necessary, this gets back to the menu at acceptable reaction times. (nw)

This commit is contained in:
dankan1890 2016-08-16 19:06:22 +02:00
parent 7ab2f5b02f
commit 1ec5a77b56

View File

@ -1027,7 +1027,6 @@ void menu_select_game::build_list(const char *filter_text, int filter, bool bios
for (auto & s_driver : s_drivers) for (auto & s_driver : s_drivers)
{ {
auto entries = rom_build_entries(s_driver->rom);
if (!bioscheck && filter != FILTER_BIOS && (s_driver->flags & MACHINE_IS_BIOS_ROOT) != 0) if (!bioscheck && filter != FILTER_BIOS && (s_driver->flags & MACHINE_IS_BIOS_ROOT) != 0)
continue; continue;
@ -1113,15 +1112,19 @@ void menu_select_game::build_list(const char *filter_text, int filter, bool bios
} }
break; break;
case FILTER_CHD: case FILTER_CHD:
{
auto entries = rom_build_entries(s_driver->rom);
for (const rom_entry &rom : entries) for (const rom_entry &rom : entries)
if (ROMENTRY_ISREGION(&rom) && ROMREGION_ISDISKDATA(&rom)) if (ROMENTRY_ISREGION(&rom) && ROMREGION_ISDISKDATA(&rom))
{ {
m_displaylist.push_back(s_driver); m_displaylist.push_back(s_driver);
break; break;
} }
}
break; break;
case FILTER_NOCHD: case FILTER_NOCHD:
{ {
auto entries = rom_build_entries(s_driver->rom);
bool found = false; bool found = false;
for (const rom_entry &rom : entries) for (const rom_entry &rom : entries)
if (ROMENTRY_ISREGION(&rom) && ROMREGION_ISDISKDATA(&rom)) if (ROMENTRY_ISREGION(&rom) && ROMREGION_ISDISKDATA(&rom))