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

@@ -1184,11 +1184,10 @@ pc_full_speed(void)
/* Initialize modules, ran once, after pc_init. */
int
pc_init_modules(void)
pc_init_roms(void)
{
int c;
int m;
wchar_t temp[512];
char tempc[512];
if (dump_missing) {
@@ -1227,6 +1226,16 @@ pc_init_modules(void)
}
pc_log("A total of %d ROM sets have been loaded.\n", c);
return 1;
}
int
pc_init_modules(void)
{
int c;
wchar_t temp[512];
char tempc[512];
/* Load the ROMs for the selected machine. */
if (!machine_available(machine)) {
swprintf(temp, sizeof_w(temp), plat_get_string(STRING_HW_NOT_AVAILABLE_MACHINE), machine_getname());