mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
23 lines
480 B
C++
23 lines
480 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include <deque>
|
|
#include "Shared/BaseControlDevice.h"
|
|
|
|
class Emulator;
|
|
|
|
class RewindData
|
|
{
|
|
private:
|
|
vector<uint8_t> SaveStateData;
|
|
|
|
public:
|
|
std::deque<ControlDeviceState> InputLogs[BaseControlDevice::PortCount];
|
|
int32_t FrameCount = 0;
|
|
bool EndOfSegment = false;
|
|
|
|
void GetStateData(stringstream& stateData);
|
|
uint32_t GetStateSize() { return (uint32_t)SaveStateData.size(); }
|
|
|
|
void LoadState(Emulator* emu);
|
|
void SaveState(Emulator* emu);
|
|
};
|