Skip to content

Commit

Permalink
Recording: Clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Apr 16, 2022
1 parent 11cf244 commit 9b97c15
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pcsx2/Recording/InputRecording.cpp
Expand Up @@ -184,12 +184,15 @@ void InputRecording::IncrementFrameCounter()
frameCounter++;
switch (state)
{
case InputRecordingMode::Recording:
inputRecordingData.SetTotalFrames(frameCounter);
[[fallthrough]];
case InputRecordingMode::Replaying:
if (frameCounter == inputRecordingData.GetTotalFrames())
incrementUndo = false;
case InputRecordingMode::Recording:
inputRecordingData.SetTotalFrames(frameCounter);
[[fallthrough]];
case InputRecordingMode::Replaying:
if (frameCounter == inputRecordingData.GetTotalFrames())
incrementUndo = false;
break;
case InputRecordingMode::NotActive: // Does nothing but keep GCC happy.
break;
}
}
}
Expand Down

0 comments on commit 9b97c15

Please sign in to comment.