Split off ROM set checking from pc_init_modules()

Everything else isn't needed for the manager
This commit is contained in:
Alexander Babikov
2025-08-14 07:04:51 +05:00
parent 20259c0fa8
commit 05120bfb70
4 changed files with 18 additions and 4 deletions

View File

@@ -1228,11 +1228,12 @@ main(int argc, char **argv)
ret = pc_init(argc, argv);
if (ret == 0)
return 0;
if (!pc_init_modules()) {
if (!pc_init_roms()) {
ui_msgbox_header(MBX_FATAL, L"No ROMs found.", L"86Box could not find any usable ROM images.\n\nPlease download a ROM set and extract it into the \"roms\" directory.");
SDL_Quit();
return 6;
}
pc_init_modules();
for (uint8_t i = 1; i < GFXCARD_MAX; i++)
gfxcard[i] = 0;