Lay down BaseCPU structure

This commit is contained in:
SimoneN64
2023-07-24 16:06:33 +02:00
parent e587c31150
commit 698032f0a1
8 changed files with 64 additions and 36 deletions

View File

@@ -14,7 +14,7 @@ struct Core {
void LoadROM(const std::string&);
void Run(float volumeL, float volumeR);
void TogglePause() { pause = !pause; }
[[nodiscard]] VI& GetVI() { return cpu.mem.mmio.vi; }
[[nodiscard]] VI& GetVI() { return cpu->mem.mmio.vi; }
u32 breakpoint = 0;
@@ -23,6 +23,6 @@ struct Core {
int cycles = 0;
bool romLoaded = false;
std::string rom;
Interpreter cpu;
std::unique_ptr<BaseCPU> cpu;
};
}