MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / setReplayMode

Method setReplayMode

pcsx2/Recording/InputRecordingControls.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void InputRecordingControls::setReplayMode(bool waitForFrameToEnd)
45{
46 if (!waitForFrameToEnd || VMManager::GetState() == VMState::Paused)
47 {
48 m_state = Mode::Replaying;
49 InputRec::log(TRANSLATE("InputRecordingControls","Replay Mode Enabled"), Host::OSD_INFO_DURATION);
50 MTGS::PresentCurrentFrame();
51 }
52 else
53 {
54 m_controlQueue.push([&]() {
55 m_state = Mode::Replaying;
56 InputRec::log(TRANSLATE("InputRecordingControls","Record Mode Enabled"), Host::OSD_INFO_DURATION);
57 });
58 }
59}
60
61bool InputRecordingControls::isReplaying() const
62{

Callers 2

playMethod · 0.80

Calls 2

logFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected