| 298 | } |
| 299 | |
| 300 | void 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 | |
| 321 | bool InputRecording::isTypeSavestate() const |
| 322 | { |