diff --git a/Source/Core/Core/FifoPlayer/FifoRecorder.cpp b/Source/Core/Core/FifoPlayer/FifoRecorder.cpp index 274b4c1cd0..8d3cfb9aeb 100644 --- a/Source/Core/Core/FifoPlayer/FifoRecorder.cpp +++ b/Source/Core/Core/FifoPlayer/FifoRecorder.cpp @@ -63,6 +63,11 @@ void FifoRecorder::StopRecording() m_RequestedRecordingEnd = true; } +bool FifoRecorder::IsRecordingDone() const +{ + return m_WasRecording && m_File != nullptr; +} + FifoDataFile* FifoRecorder::GetRecordedFile() const { return m_File.get(); diff --git a/Source/Core/Core/FifoPlayer/FifoRecorder.h b/Source/Core/Core/FifoPlayer/FifoRecorder.h index 7389d3014d..7410f474a5 100644 --- a/Source/Core/Core/FifoPlayer/FifoRecorder.h +++ b/Source/Core/Core/FifoPlayer/FifoRecorder.h @@ -20,6 +20,8 @@ public: void StartRecording(s32 numFrames, CallbackFunc finishedCb); void StopRecording(); + bool IsRecordingDone() const; + FifoDataFile* GetRecordedFile() const; // Called from video thread