Skip to content

Commit

Permalink
input-rec: refresh imgui overlay when recording mode changes while pa…
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
xTVaser authored and refractionpcsx2 committed Nov 27, 2022
1 parent 844ff5b commit 409c285
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pcsx2/Recording/InputRecordingControls.cpp
Expand Up @@ -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())
Expand All @@ -247,6 +246,7 @@ void InputRecordingControls::setRecordMode(bool waitForFrameToEnd)
{
m_state = Mode::Recording;
InputRec::log("Record mode ON");
GSPresentCurrentFrame();
}
else
{
Expand All @@ -263,6 +263,7 @@ void InputRecordingControls::setReplayMode(bool waitForFrameToEnd)
{
m_state = Mode::Replaying;
InputRec::log("Replay mode ON");
GSPresentCurrentFrame();
}
else
{
Expand Down

0 comments on commit 409c285

Please sign in to comment.