Skip to content

Commit

Permalink
bugfix: ROM list would not get updated on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Feb 8, 2025
1 parent f706383 commit 34ee9fa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/osdep/gui/PanelROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ void ExitPanelROM()

void RefreshPanelROM()
{
// Load the ROMs
UAEREG* fkey = regcreatetree(nullptr, _T("DetectedROMs"));
load_keyring(&changed_prefs, nullptr);
addromfiles(fkey, cboMainROM, changed_prefs.romfile,
ROMTYPE_KICK | ROMTYPE_KICKCD32, 0);
addromfiles(fkey, cboExtROM, changed_prefs.romextfile,
ROMTYPE_EXTCD32 | ROMTYPE_EXTCDTV | ROMTYPE_ARCADIABIOS | ROMTYPE_ALG, 0);
addromfiles(fkey, cboCartROM, changed_prefs.cartfile,
ROMTYPE_FREEZER | ROMTYPE_ARCADIAGAME | ROMTYPE_CD32CART, 0);
regclosetree(fkey);

//TODO add flashfile and rtcfile options

chkKickShifter->setSelected(changed_prefs.kickshifter);
Expand Down

0 comments on commit 34ee9fa

Please sign in to comment.