Save state support

This commit is contained in:
Connor McLaughlin
2019-09-14 20:28:47 +10:00
parent 851ef67814
commit 2560efbebd
16 changed files with 256 additions and 56 deletions

View File

@ -1,6 +1,9 @@
#pragma once
#include "types.h"
class ByteStream;
class StateWrapper;
class HostInterface;
namespace CPU
@ -26,11 +29,16 @@ public:
bool Initialize();
void Reset();
bool LoadState(ByteStream* state);
bool SaveState(ByteStream* state);
void RunFrame();
bool LoadEXE(const char* filename);
private:
bool DoState(StateWrapper& sw);
HostInterface* m_host_interface;
std::unique_ptr<CPU::Core> m_cpu;
std::unique_ptr<Bus> m_bus;