From b38847915cbf712ec3980660ce248c6cdcebaad7 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 27 Dec 2023 13:54:01 -0300 Subject: [PATCH] Fix game port initialization order issue --- src/86box.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/86box.c b/src/86box.c index 25b073fda..022e84657 100644 --- a/src/86box.c +++ b/src/86box.c @@ -1153,9 +1153,6 @@ pc_reset_hard_init(void) * that will be a call to device_reset_all() later ! */ - if (joystick_type) - gameport_update_joystick_type(); - /* Reset and reconfigure the Sound Card layer. */ sound_card_reset(); @@ -1199,10 +1196,13 @@ pc_reset_hard_init(void) /* Reset any ISA RTC cards. */ isartc_reset(); - /* Initialize the Voodoo cards here inorder to minmize + /* Initialize the Voodoo cards here inorder to minimize the chances of the SCSI controller ending up on the bridge. */ video_voodoo_init(); + if (joystick_type) + gameport_update_joystick_type(); /* installs game port if no device provides one, must be late */ + ui_sb_update_panes(); if (config_changed) {