mirror of
https://github.com/dolphin-emu/fifoplayer.git
synced 2026-01-31 01:05:16 +01:00
42 lines
762 B
C++
42 lines
762 B
C++
// Data structures used when loading dff files
|
|
|
|
#ifndef FIFOPLAYER_FIFODATAFILE_H
|
|
#define FIFOPLAYER_FIFODATAFILE_H
|
|
|
|
#include "CommonTypes.h"
|
|
#include <vector>
|
|
#include <stdio.h>
|
|
|
|
//struct DffMemoryUpdate;
|
|
#include "DffFile.h"
|
|
|
|
struct FifoFrameData
|
|
{
|
|
u32 fifoStart;
|
|
u32 fifoEnd;
|
|
|
|
std::vector<u8> fifoData;
|
|
|
|
// Sorted by position - TODO: Make this a map instead?
|
|
std::vector<DffMemoryUpdate> memoryUpdates;
|
|
std::vector<DffAsyncEvent> asyncEvents;
|
|
};
|
|
|
|
struct FifoData
|
|
{
|
|
FILE* file;
|
|
u32 version;
|
|
|
|
std::vector<FifoFrameData> frames;
|
|
|
|
std::vector<u32> bpmem;
|
|
std::vector<u32> cpmem;
|
|
std::vector<u32> xfmem;
|
|
std::vector<u32> xfregs;
|
|
std::vector<u16> vimem;
|
|
};
|
|
|
|
void LoadDffData(const char* filename, FifoData& out);
|
|
|
|
#endif // FIFOPLAYER_FIFODATAFILE_H
|