From 90d3f33246fae6eec9527650995da903355b6cb2 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 10 Jul 2022 13:35:09 +0600 Subject: [PATCH] Don't initialize the secondary video card at load time if ROMs aren't available --- src/86box.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/86box.c b/src/86box.c index a1d921e0e..24f74b04a 100644 --- a/src/86box.c +++ b/src/86box.c @@ -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; random_init();