Don't initialize the secondary video card at load time if ROMs aren't available

This commit is contained in:
Cacodemon345
2022-07-10 13:35:09 +06:00
parent 11a75f5fd5
commit 90d3f33246

View File

@@ -853,6 +853,15 @@ pc_init_modules(void)
} }
} }
if (! video_card_available(gfxcard_2)) {
char temp[1024] = { 0 };
char tempc[1024] = { 0 };
device_get_name(video_card_getdevice(gfxcard_2), 0, tempc);
snprintf(temp, sizeof(temp), "Video card #2 \"%s\" is not available due to missing ROMs in the roms/video directory. Disabling the second video card.", tempc);
ui_msgbox_header(MBX_INFO, (wchar_t *) IDS_2128, temp);
gfxcard_2 = 0;
}
atfullspeed = 0; atfullspeed = 0;
random_init(); random_init();