FifoPlayer: Implement IsPlaying()
This commit is contained in:
parent
b3b58b586c
commit
aac1b386b9
|
@ -11,6 +11,7 @@
|
|||
#include "Common/CommonTypes.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/FifoPlayer/FifoAnalyzer.h"
|
||||
#include "Core/FifoPlayer/FifoDataFile.h"
|
||||
|
@ -67,6 +68,11 @@ void FifoPlayer::Close()
|
|||
m_FrameRangeEnd = 0;
|
||||
}
|
||||
|
||||
bool FifoPlayer::IsPlaying() const
|
||||
{
|
||||
return GetFile() != nullptr && Core::IsRunning();
|
||||
}
|
||||
|
||||
class FifoPlayer::CPUCore final : public CPUCoreBase
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -70,6 +70,8 @@ public:
|
|||
// PowerPC state.
|
||||
std::unique_ptr<CPUCoreBase> GetCPUCore();
|
||||
|
||||
bool IsPlaying() const;
|
||||
|
||||
FifoDataFile* GetFile() const { return m_File.get(); }
|
||||
u32 GetFrameObjectCount() const;
|
||||
u32 GetCurrentFrameNum() const { return m_CurrentFrame; }
|
||||
|
|
Loading…
Reference in New Issue