| 94 | } |
| 95 | |
| 96 | bool 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 | |
| 113 | bool InputRecordingFile::openExisting(const std::string& path) |
| 114 | { |
no test coverage detected