Experimental save state support

This commit is contained in:
SimoneN64
2023-10-30 08:39:54 +01:00
parent c4f148eec1
commit b1f7659359
17 changed files with 313 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ struct Core {
void Stop();
void LoadROM(const std::string&);
void Run(float volumeL, float volumeR);
void Serialize();
void Deserialize();
void TogglePause() { pause = !pause; }
[[nodiscard]] VI& GetVI() { return cpu->mem.mmio.vi; }
@@ -25,5 +27,8 @@ struct Core {
bool romLoaded = false;
std::string rom;
std::unique_ptr<BaseCPU> cpu;
std::vector<u8> serialized[10]{};
int memSize, cpuSize, verSize;
int slot = 0;
};
}