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

Method saveControllerData

pcsx2/Recording/InputRecording.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void InputRecording::saveControllerData(const PadData& data, const int port, const int slot)
194{
195 // Save the frame's data to the file
196 if (!m_file.writePadData(m_frame_counter, data))
197 {
198 InputRec::consoleLog(fmt::format("Failed to write input data at [{}:{}:{}]", m_frame_counter, port, slot));
199 }
200}
201std::optional<PadData> InputRecording::updateControllerData(const int port, const int slot)
202{
203 // Get the PadData from the file

Callers

nothing calls this directly

Calls 3

consoleLogFunction · 0.85
writePadDataMethod · 0.80
formatFunction · 0.50

Tested by

no test coverage detected