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

Method closeActiveFile

pcsx2/Recording/InputRecording.cpp:133–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void InputRecording::closeActiveFile()
134{
135 if (!m_is_active)
136 {
137 return;
138 }
139 if (m_file.close())
140 {
141 m_is_active = false;
142 InputRec::log(TRANSLATE_STR("InputRecording", "Input recording stopped"), Host::OSD_ERROR_DURATION);
143 MTGS::PresentCurrentFrame();
144 }
145 else
146 {
147 InputRec::log(TRANSLATE_STR("InputRecording", "Unable to stop input recording"), Host::OSD_ERROR_DURATION);
148 }
149}
150
151void InputRecording::stop()
152{

Callers

nothing calls this directly

Calls 2

logFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected