mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 01:05:50 +01:00
49 lines
927 B
C++
49 lines
927 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Core/FifoPlayer/FifoAnalyzer.h"
|
|
#include "Core/FifoPlayer/FifoDataFile.h"
|
|
|
|
struct AnalyzedFrameInfo
|
|
{
|
|
std::vector<u32> objectStarts;
|
|
std::vector<u32> objectEnds;
|
|
std::vector<MemoryUpdate> memoryUpdates;
|
|
};
|
|
|
|
class FifoPlaybackAnalyzer
|
|
{
|
|
public:
|
|
FifoPlaybackAnalyzer();
|
|
|
|
void AnalyzeFrames(FifoDataFile *file, std::vector<AnalyzedFrameInfo> &frameInfo);
|
|
|
|
private:
|
|
struct MemoryRange
|
|
{
|
|
u32 begin;
|
|
u32 end;
|
|
};
|
|
|
|
void AddMemoryUpdate(MemoryUpdate memUpdate, AnalyzedFrameInfo &frameInfo);
|
|
|
|
u32 DecodeCommand(u8 *data);
|
|
void LoadBP(u32 value0);
|
|
|
|
void StoreEfbCopyRegion();
|
|
void StoreWrittenRegion(u32 address, u32 size);
|
|
|
|
bool m_DrawingObject;
|
|
|
|
std::vector<MemoryRange> m_WrittenMemory;
|
|
|
|
BPMemory m_BpMem;
|
|
FifoAnalyzer::CPMemory m_CpMem;
|
|
};
|