MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / handleLoadingSavestate

Method handleLoadingSavestate

pcsx2/Recording/InputRecording.cpp:300–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void InputRecording::handleLoadingSavestate()
301{
302 // We need to keep track of the starting internal frame of the recording
303 // - For a power-on recording this should already be done - it starts at 0
304 // - For save state recordings, this is stored inside the initial save-state
305 //
306 // Why?
307 // - When you re-record you load another save-state which has it's own frame counter
308 // stored within, we use this to adjust the frame we are replaying/recording to
309 if (isTypeSavestate() && !m_initial_load_complete)
310 {
311 setStartingFrame(g_FrameCount);
312 m_initial_load_complete = true;
313 }
314 else
315 {
316 adjustFrameCounterOnReRecord(g_FrameCount);
317 m_watching_for_rerecords = true;
318 }
319}
320
321bool InputRecording::isTypeSavestate() const
322{

Callers 1

DoLoadStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected