input-rec: refresh imgui overlay when recording mode changes while paused

This commit is contained in:
Tyler Wilding 2022-09-21 20:19:18 -04:00 committed by refractionpcsx2
parent 844ff5bb04
commit 409c285f36
1 changed files with 3 additions and 2 deletions

View File

@ -225,10 +225,9 @@ void InputRecordingControls::StopCapture() const
#include "InputRecordingControls.h"
#include "Utilities/InputRecordingLogger.h"
#include "GS/GS.h"
#include "VMManager.h"
// TODO - update ImGUI when controls are changed - `GetMTGS().PresentCurrentFrame()`, becareful about only running it on the emu/cpu thread
void InputRecordingControls::toggleRecordMode()
{
if (isReplaying())
@ -247,6 +246,7 @@ void InputRecordingControls::setRecordMode(bool waitForFrameToEnd)
{
m_state = Mode::Recording;
InputRec::log("Record mode ON");
GSPresentCurrentFrame();
}
else
{
@ -263,6 +263,7 @@ void InputRecordingControls::setReplayMode(bool waitForFrameToEnd)
{
m_state = Mode::Replaying;
InputRec::log("Replay mode ON");
GSPresentCurrentFrame();
}
else
{