mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
FifoPlayer: Implement IsPlaying()
This commit is contained in:
parent
b3b58b586c
commit
aac1b386b9
@ -11,6 +11,7 @@
|
|||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/MsgHandler.h"
|
#include "Common/MsgHandler.h"
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
|
#include "Core/Core.h"
|
||||||
#include "Core/CoreTiming.h"
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/FifoPlayer/FifoAnalyzer.h"
|
#include "Core/FifoPlayer/FifoAnalyzer.h"
|
||||||
#include "Core/FifoPlayer/FifoDataFile.h"
|
#include "Core/FifoPlayer/FifoDataFile.h"
|
||||||
@ -67,6 +68,11 @@ void FifoPlayer::Close()
|
|||||||
m_FrameRangeEnd = 0;
|
m_FrameRangeEnd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FifoPlayer::IsPlaying() const
|
||||||
|
{
|
||||||
|
return GetFile() != nullptr && Core::IsRunning();
|
||||||
|
}
|
||||||
|
|
||||||
class FifoPlayer::CPUCore final : public CPUCoreBase
|
class FifoPlayer::CPUCore final : public CPUCoreBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -70,6 +70,8 @@ public:
|
|||||||
// PowerPC state.
|
// PowerPC state.
|
||||||
std::unique_ptr<CPUCoreBase> GetCPUCore();
|
std::unique_ptr<CPUCoreBase> GetCPUCore();
|
||||||
|
|
||||||
|
bool IsPlaying() const;
|
||||||
|
|
||||||
FifoDataFile* GetFile() const { return m_File.get(); }
|
FifoDataFile* GetFile() const { return m_File.get(); }
|
||||||
u32 GetFrameObjectCount() const;
|
u32 GetFrameObjectCount() const;
|
||||||
u32 GetCurrentFrameNum() const { return m_CurrentFrame; }
|
u32 GetCurrentFrameNum() const { return m_CurrentFrame; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user