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

Method openNew

pcsx2/Recording/InputRecordingFile.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool InputRecordingFile::openNew(const std::string& path, bool fromSavestate)
97{
98 if ((m_recordingFile = FileSystem::OpenCFile(path.data(), "wb+")) == nullptr)
99 {
100 InputRec::consoleLog(fmt::format("Input recording file opening failed. Error - {}", strerror(errno)));
101 return false;
102 }
103
104 m_filename = path;
105 m_totalFrames = 0;
106 m_undoCount = 0;
107 m_header.init();
108 m_savestate = fromSavestate;
109 InputRecording::InformGSThread();
110 return true;
111}
112
113bool InputRecordingFile::openExisting(const std::string& path)
114{

Callers 1

createMethod · 0.80

Calls 4

consoleLogFunction · 0.85
formatFunction · 0.50
dataMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected