Emu: Convert Emu class to singleton

This commit is contained in:
Riyyi
2022-08-17 22:51:03 +02:00
parent 0e34901b64
commit 38c053e2d8
3 changed files with 19 additions and 15 deletions
+6 -2
View File
@@ -2,10 +2,14 @@
#include <cstdint>
#include <vector>
#include "processing_unit.h"
class Emu {
#include "processing-unit.h"
#include "ruc/singleton.h"
class Emu : ruc::Singleton<Emu> {
public:
Emu(s) {}
void WriteRAM(int location, int length);
void WriteVRAM(int location, int length);
void WriteROM(int location, int length);