FifoPlayer: In-class initialize member variables where applicable

This commit is contained in:
Lioncash 2017-03-21 15:29:00 -04:00
parent 5854047e3a
commit eda27ee397
2 changed files with 15 additions and 19 deletions

View File

@ -31,6 +31,10 @@
bool IsPlayingBackFifologWithBrokenEFBCopies = false;
FifoPlayer::FifoPlayer() : m_Loop{SConfig::GetInstance().bLoopFifoReplay}
{
}
FifoPlayer::~FifoPlayer()
{
}
@ -205,14 +209,6 @@ FifoPlayer& FifoPlayer::GetInstance()
return instance;
}
FifoPlayer::FifoPlayer()
: m_CurrentFrame(0), m_FrameRangeStart(0), m_FrameRangeEnd(0), m_ObjectRangeStart(0),
m_ObjectRangeEnd(10000), m_EarlyMemoryUpdates(false), m_FileLoadedCb(nullptr),
m_FrameWrittenCb(nullptr), m_File(nullptr)
{
m_Loop = SConfig::GetInstance().bLoopFifoReplay;
}
void FifoPlayer::WriteFrame(const FifoFrameInfo& frame, const AnalyzedFrameInfo& info)
{
// Core timing information

View File

@ -130,21 +130,21 @@ private:
bool m_Loop;
u32 m_CurrentFrame;
u32 m_FrameRangeStart;
u32 m_FrameRangeEnd;
u32 m_CurrentFrame = 0;
u32 m_FrameRangeStart = 0;
u32 m_FrameRangeEnd = 0;
u32 m_ObjectRangeStart;
u32 m_ObjectRangeEnd;
u32 m_ObjectRangeStart = 0;
u32 m_ObjectRangeEnd = 10000;
bool m_EarlyMemoryUpdates;
bool m_EarlyMemoryUpdates = false;
u64 m_CyclesPerFrame;
u32 m_ElapsedCycles;
u32 m_FrameFifoSize;
u64 m_CyclesPerFrame = 0;
u32 m_ElapsedCycles = 0;
u32 m_FrameFifoSize = 0;
CallbackFunc m_FileLoadedCb;
CallbackFunc m_FrameWrittenCb;
CallbackFunc m_FileLoadedCb = nullptr;
CallbackFunc m_FrameWrittenCb = nullptr;
std::unique_ptr<FifoDataFile> m_File;