mirror of https://github.com/PCSX2/pcsx2.git
Make it easy to turn on and off the new saveslot code. Comment out a UI update that doesn't look needed that could have been causing issues.
This commit is contained in:
parent
e90c87a8ef
commit
042311a827
|
@ -236,7 +236,9 @@ void SysCoreThread::GameStartingInThread()
|
||||||
sApp.PostAppMethod(&Pcsx2App::resetDebugger);
|
sApp.PostAppMethod(&Pcsx2App::resetDebugger);
|
||||||
|
|
||||||
ApplyLoadedPatches(PPT_ONCE_ON_LOAD);
|
ApplyLoadedPatches(PPT_ONCE_ON_LOAD);
|
||||||
|
#ifdef USE_NEW_SAVESLOTS_UI
|
||||||
UI_UpdateSysControls();
|
UI_UpdateSysControls();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SysCoreThread::StateCheckInThread()
|
bool SysCoreThread::StateCheckInThread()
|
||||||
|
|
|
@ -76,10 +76,12 @@ void States_FreezeCurrentSlot()
|
||||||
GSchangeSaveState(StatesC, SaveStateBase::GetFilename(StatesC).ToUTF8());
|
GSchangeSaveState(StatesC, SaveStateBase::GetFilename(StatesC).ToUTF8());
|
||||||
StateCopy_SaveToSlot(StatesC);
|
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.
|
// 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].empty = false;
|
||||||
saveslot_cache[StatesC].updated = wxDateTime::Now();
|
saveslot_cache[StatesC].updated = wxDateTime::Now();
|
||||||
saveslot_cache[StatesC].crc = ElfCRC;
|
saveslot_cache[StatesC].crc = ElfCRC;
|
||||||
|
#endif
|
||||||
|
|
||||||
GetSysExecutorThread().PostIdleEvent(SysExecEvent_ClearSavingLoadingFlag());
|
GetSysExecutorThread().PostIdleEvent(SysExecEvent_ClearSavingLoadingFlag());
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include "System.h"
|
#include "System.h"
|
||||||
#include "Elfheader.h"
|
#include "Elfheader.h"
|
||||||
|
|
||||||
|
#define USE_NEW_SAVESLOTS_UI
|
||||||
|
|
||||||
class Saveslot
|
class Saveslot
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -476,7 +476,11 @@ protected:
|
||||||
|
|
||||||
void CleanupEvent()
|
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) );
|
Console.Indent().WriteLn( Color_StrongGreen, L"filename: %s", WX_STR(file) );
|
||||||
|
|
||||||
StateCopy_SaveToFile( file );
|
StateCopy_SaveToFile( file );
|
||||||
|
#ifdef USE_NEW_SAVESLOTS_UI
|
||||||
UI_UpdateSysControls();
|
UI_UpdateSysControls();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void StateCopy_LoadFromSlot( uint slot, bool isFromBackup )
|
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) );
|
Console.Indent().WriteLn( Color_StrongGreen, L"filename: %s", WX_STR(file) );
|
||||||
|
|
||||||
StateCopy_LoadFromFile( file );
|
StateCopy_LoadFromFile( file );
|
||||||
|
#ifdef USE_NEW_SAVESLOTS_UI
|
||||||
UI_UpdateSysControls();
|
UI_UpdateSysControls();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ static void _SaveLoadStuff(bool enabled)
|
||||||
sMainFrame.EnableMenuItem(MenuId_Sys_LoadStates, enabled);
|
sMainFrame.EnableMenuItem(MenuId_Sys_LoadStates, enabled);
|
||||||
sMainFrame.EnableMenuItem(MenuId_Sys_SaveStates, enabled);
|
sMainFrame.EnableMenuItem(MenuId_Sys_SaveStates, enabled);
|
||||||
|
|
||||||
|
#ifdef USE_NEW_SAVESLOTS_UI
|
||||||
for (int i = 0; i < 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
int load_menu_item = MenuId_State_Load01 + i + 1;
|
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());
|
sMainFrame.SetMenuItemLabel(save_menu_item, saveslot_cache[i].SlotName());
|
||||||
}
|
}
|
||||||
Sstates_updateLoadBackupMenuItem(false);
|
Sstates_updateLoadBackupMenuItem(false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updates the enable/disable status of all System related controls: menus, toolbars,
|
// Updates the enable/disable status of all System related controls: menus, toolbars,
|
||||||
|
|
Loading…
Reference in New Issue