Skip to content

Commit

Permalink
enhancement: When selecting CD32 model, set joystick port to CD32 also (
Browse files Browse the repository at this point in the history
fixes #1346)
  • Loading branch information
midwan committed Jun 6, 2024
1 parent 7a42a4e commit bd3825f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/osdep/gui/PanelQuickstart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ static void AdjustPrefs()
// No CD available
changed_prefs.cdslots[0].inuse = false;
changed_prefs.cdslots[0].type = SCSI_UNIT_DISABLED;

// Set joystick port to Default
changed_prefs.jports[1].mode = 0;
break;
case 6: // A4000
case 7: // A4000T
Expand All @@ -238,6 +241,9 @@ static void AdjustPrefs()
// No CD available
changed_prefs.cdslots[0].inuse = false;
changed_prefs.cdslots[0].type = SCSI_UNIT_DISABLED;

// Set joystick port to Default
changed_prefs.jports[1].mode = 0;
break;

case 8: // CD32
Expand All @@ -249,6 +255,8 @@ static void AdjustPrefs()
changed_prefs.cdslots[0].type = SCSI_UNIT_DEFAULT;
changed_prefs.gfx_monitor[0].gfx_size.width = 720;
changed_prefs.gfx_monitor[0].gfx_size.height = 568;
// Set joystick port to CD32 mode
changed_prefs.jports[1].mode = 7;
break;
default:
break;
Expand Down

0 comments on commit bd3825f

Please sign in to comment.