Split off ROM set checking from pc_init_modules()
Everything else isn't needed for the manager
This commit is contained in:
13
src/86box.c
13
src/86box.c
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user