diff --git a/pcsx2/System/SysCoreThread.cpp b/pcsx2/System/SysCoreThread.cpp index 78c73d0c14..9fa577d8af 100644 --- a/pcsx2/System/SysCoreThread.cpp +++ b/pcsx2/System/SysCoreThread.cpp @@ -236,7 +236,9 @@ void SysCoreThread::GameStartingInThread() sApp.PostAppMethod(&Pcsx2App::resetDebugger); ApplyLoadedPatches(PPT_ONCE_ON_LOAD); +#ifdef USE_NEW_SAVESLOTS_UI UI_UpdateSysControls(); +#endif } bool SysCoreThread::StateCheckInThread() diff --git a/pcsx2/gui/Saveslots.cpp b/pcsx2/gui/Saveslots.cpp index 57a11dc2f2..3aefe53dd8 100644 --- a/pcsx2/gui/Saveslots.cpp +++ b/pcsx2/gui/Saveslots.cpp @@ -76,10 +76,12 @@ void States_FreezeCurrentSlot() GSchangeSaveState(StatesC, SaveStateBase::GetFilename(StatesC).ToUTF8()); StateCopy_SaveToSlot(StatesC); +#ifdef USE_NEW_SAVESLOTS_UI // Hack: Update the saveslot saying it's filled *right now* because it's still writing the file and we don't have a timestamp. saveslot_cache[StatesC].empty = false; saveslot_cache[StatesC].updated = wxDateTime::Now(); saveslot_cache[StatesC].crc = ElfCRC; +#endif GetSysExecutorThread().PostIdleEvent(SysExecEvent_ClearSavingLoadingFlag()); } diff --git a/pcsx2/gui/Saveslots.h b/pcsx2/gui/Saveslots.h index 503264680f..8a45afc7c5 100644 --- a/pcsx2/gui/Saveslots.h +++ b/pcsx2/gui/Saveslots.h @@ -20,6 +20,8 @@ #include "System.h" #include "Elfheader.h" +#define USE_NEW_SAVESLOTS_UI + class Saveslot { public: diff --git a/pcsx2/gui/SysState.cpp b/pcsx2/gui/SysState.cpp index caeec947ab..34e1eca646 100644 --- a/pcsx2/gui/SysState.cpp +++ b/pcsx2/gui/SysState.cpp @@ -476,7 +476,11 @@ protected: void CleanupEvent() { - UI_UpdateSysControls(); +#ifdef USE_NEW_SAVESLOTS_UI + // I have a feeling this doesn't need to be here, so I'm commenting this out for the moment. + // I'll remove it if it doesn't cause other issues. + //UI_UpdateSysControls(); +#endif } }; @@ -675,7 +679,9 @@ void StateCopy_SaveToSlot( uint num ) Console.Indent().WriteLn( Color_StrongGreen, L"filename: %s", WX_STR(file) ); StateCopy_SaveToFile( file ); +#ifdef USE_NEW_SAVESLOTS_UI UI_UpdateSysControls(); +#endif } void StateCopy_LoadFromSlot( uint slot, bool isFromBackup ) @@ -692,5 +698,7 @@ void StateCopy_LoadFromSlot( uint slot, bool isFromBackup ) Console.Indent().WriteLn( Color_StrongGreen, L"filename: %s", WX_STR(file) ); StateCopy_LoadFromFile( file ); +#ifdef USE_NEW_SAVESLOTS_UI UI_UpdateSysControls(); +#endif } diff --git a/pcsx2/gui/UpdateUI.cpp b/pcsx2/gui/UpdateUI.cpp index 01b439d6d4..8598883dff 100644 --- a/pcsx2/gui/UpdateUI.cpp +++ b/pcsx2/gui/UpdateUI.cpp @@ -43,6 +43,7 @@ static void _SaveLoadStuff(bool enabled) sMainFrame.EnableMenuItem(MenuId_Sys_LoadStates, enabled); sMainFrame.EnableMenuItem(MenuId_Sys_SaveStates, enabled); +#ifdef USE_NEW_SAVESLOTS_UI for (int i = 0; i < 10; i++) { int load_menu_item = MenuId_State_Load01 + i + 1; @@ -65,6 +66,7 @@ static void _SaveLoadStuff(bool enabled) sMainFrame.SetMenuItemLabel(save_menu_item, saveslot_cache[i].SlotName()); } Sstates_updateLoadBackupMenuItem(false); +#endif } // Updates the enable/disable status of all System related controls: menus, toolbars,