Recording: Clean up warnings

This commit is contained in:
refractionpcsx2 2022-04-16 02:25:12 +01:00
parent 11cf244e97
commit 9b97c157f2
1 changed files with 9 additions and 6 deletions

View File

@ -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;
}
}
}