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

Method writeHeader

pcsx2/Recording/InputRecordingFile.cpp:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164bool InputRecordingFile::writeHeader() const
165{
166 if (m_recordingFile == nullptr)
167 {
168 return false;
169 }
170 rewind(m_recordingFile);
171 if (fwrite(&m_header, sizeof(InputRecordingFileHeader), 1, m_recordingFile) != 1 ||
172 fwrite(&m_totalFrames, 4, 1, m_recordingFile) != 1 ||
173 fwrite(&m_undoCount, 4, 1, m_recordingFile) != 1 ||
174 fwrite(&m_savestate, 1, 1, m_recordingFile) != 1)
175 {
176 return false;
177 }
178 return true;
179}
180
181bool InputRecordingFile::writePadData(const uint frame, const PadData data) const
182{

Callers 1

createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected