mirror of https://github.com/PCSX2/pcsx2.git
recording: Skip extraneous code in SaveState handler if recording is disabled
This commit is contained in:
parent
c329bae403
commit
e44a6dcddb
|
@ -32,10 +32,14 @@
|
|||
|
||||
void SaveStateBase::InputRecordingFreeze()
|
||||
{
|
||||
// NOTE - BE CAREFUL
|
||||
// CHANGING THIS WILL BREAK BACKWARDS COMPATIBILITY ON SAVESTATES
|
||||
FreezeTag("InputRecording");
|
||||
Freeze(g_FrameCount);
|
||||
|
||||
#ifndef DISABLE_RECORDING
|
||||
if (g_Conf->EmuOptions.EnableRecordingTools)
|
||||
{
|
||||
// Loading a save-state is an asynchronous task. If we are playing a recording
|
||||
// that starts from a savestate (not power-on) and the starting (pcsx2 internal) frame
|
||||
// marker has not been set (which comes from the save-state), we initialize it.
|
||||
|
@ -50,6 +54,7 @@ void SaveStateBase::InputRecordingFreeze()
|
|||
if (IsLoading())
|
||||
g_InputRecording.SetFrameCounter(g_FrameCount);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue