mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
input-rec: facilitate changing controls immediately for certain edge-cases
This commit is contained in:
committed by
refractionpcsx2
parent
a38fbb157d
commit
6ae9e7edb5
@@ -244,9 +244,9 @@ void InputRecordingControls::toggleRecordMode()
|
||||
}
|
||||
}
|
||||
|
||||
void InputRecordingControls::setRecordMode()
|
||||
void InputRecordingControls::setRecordMode(bool waitForFrameToEnd)
|
||||
{
|
||||
if (VMManager::GetState() == VMState::Paused)
|
||||
if (!waitForFrameToEnd || VMManager::GetState() == VMState::Paused)
|
||||
{
|
||||
m_state = Mode::Recording;
|
||||
InputRec::log("Record mode ON");
|
||||
@@ -260,9 +260,9 @@ void InputRecordingControls::setRecordMode()
|
||||
}
|
||||
}
|
||||
|
||||
void InputRecordingControls::setReplayMode()
|
||||
void InputRecordingControls::setReplayMode(bool waitForFrameToEnd)
|
||||
{
|
||||
if (VMManager::GetState() == VMState::Paused)
|
||||
if (!waitForFrameToEnd || VMManager::GetState() == VMState::Paused)
|
||||
{
|
||||
m_state = Mode::Replaying;
|
||||
InputRec::log("Replay mode ON");
|
||||
|
||||
Reference in New Issue
Block a user