From 69280bbf911fc976120c47d523f0e1f5df6f1d9a Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 10 Jul 2022 13:35:48 +0600 Subject: [PATCH] Don't hardcode the secondary video card to Hercules --- src/video/vid_table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/vid_table.c b/src/video/vid_table.c index ca867263d..fdad852fe 100644 --- a/src/video/vid_table.c +++ b/src/video/vid_table.c @@ -345,10 +345,11 @@ video_reset(int card) if (!(card == VID_NONE) && !machine_has_flags(machine, MACHINE_VIDEO_ONLY) && gfxcard_2 != 0 - && (video_cards[gfxcard_2].flags != video_cards[gfxcard].flags)) { + && (video_cards[gfxcard_2].flags != video_cards[gfxcard].flags) + && device_is_valid(video_card_getdevice(gfxcard_2), machine)) { video_monitor_init(1); monitor_index_global = 1; - device_add(&hercules_device); + device_add(video_cards[gfxcard_2].device); monitor_index_global = 0; }