From aa8bf7133319ac3a02ca621d81021b96b63514cf Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 19 Nov 2017 16:51:04 +0100 Subject: [PATCH] FifoRecorder: Implement IsRecordingDone() --- Source/Core/Core/FifoPlayer/FifoRecorder.cpp | 5 +++++ Source/Core/Core/FifoPlayer/FifoRecorder.h | 2 ++ 2 files changed, 7 insertions(+) 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