diff --git a/pcsx2/gui/Saveslots.cpp b/pcsx2/gui/Saveslots.cpp index 4a7a3afe51..e1c15558d5 100644 --- a/pcsx2/gui/Saveslots.cpp +++ b/pcsx2/gui/Saveslots.cpp @@ -56,8 +56,6 @@ protected: } }; -void Sstates_updateLoadBackupMenuItem(bool isBeforeSave); - void States_FreezeCurrentSlot() { // FIXME : Use of the IsSavingOrLoading flag is mostly a hack until we implement a @@ -73,7 +71,7 @@ void States_FreezeCurrentSlot() Console.WriteLn("Load or save action is already pending."); return; } - Sstates_updateLoadBackupMenuItem(true); + States_updateLoadBackupMenuItem(true); GSchangeSaveState(StatesC, SaveStateBase::GetFilename(StatesC).ToUTF8()); StateCopy_SaveToSlot(StatesC); @@ -104,7 +102,7 @@ void _States_DefrostCurrentSlot(bool isFromBackup) GetSysExecutorThread().PostIdleEvent(SysExecEvent_ClearSavingLoadingFlag()); - Sstates_updateLoadBackupMenuItem(false); + States_updateLoadBackupMenuItem(); } void States_DefrostCurrentSlot() @@ -117,8 +115,7 @@ void States_DefrostCurrentSlotBackup() _States_DefrostCurrentSlot(true); } -// I'd keep an eye on this function, as it may still be problematic. -void Sstates_updateLoadBackupMenuItem(bool isBeforeSave) +void States_updateLoadBackupMenuItem(bool isBeforeSave) { wxString file = SaveStateBase::GetFilename(StatesC); @@ -138,7 +135,7 @@ static void OnSlotChanged() if (GSchangeSaveState != NULL) GSchangeSaveState(StatesC, SaveStateBase::GetFilename(StatesC).utf8_str()); - Sstates_updateLoadBackupMenuItem(false); + States_updateLoadBackupMenuItem(); } int States_GetCurrentSlot() diff --git a/pcsx2/gui/Saveslots.h b/pcsx2/gui/Saveslots.h index 3c1783b982..d5bbd8d5bf 100644 --- a/pcsx2/gui/Saveslots.h +++ b/pcsx2/gui/Saveslots.h @@ -134,4 +134,4 @@ extern void States_CycleSlotForward(); extern void States_CycleSlotBackward(); extern void States_SetCurrentSlot(int slot); extern int States_GetCurrentSlot(); -extern void Sstates_updateLoadBackupMenuItem(bool isBeforeSave); \ No newline at end of file +extern void States_updateLoadBackupMenuItem(bool isBeforeSave = false); \ No newline at end of file diff --git a/pcsx2/gui/UpdateUI.cpp b/pcsx2/gui/UpdateUI.cpp index 668213594a..48a7d9b470 100644 --- a/pcsx2/gui/UpdateUI.cpp +++ b/pcsx2/gui/UpdateUI.cpp @@ -84,8 +84,8 @@ static void _SaveLoadStuff(bool enabled) sMainFrame.SetMenuItemLabel(slot.load_item_id, slot.SlotName()); sMainFrame.SetMenuItemLabel(slot.save_item_id, slot.SlotName()); } - } + States_updateLoadBackupMenuItem(); #endif }