diff options
Diffstat (limited to 'src/AREngine.h')
-rw-r--r-- | src/AREngine.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/src/AREngine.h b/src/AREngine.h index 5426846..cd6d4a9 100644 --- a/src/AREngine.h +++ b/src/AREngine.h @@ -21,18 +21,30 @@ #include "ARCodeFile.h" -namespace AREngine +class AREngine { +public: + AREngine(); + ~AREngine(); + void Reset(); -bool Init(); -void DeInit(); -void Reset(); + ARCodeFile* GetCodeFile() { return CodeFile; } + void SetCodeFile(ARCodeFile* file) { CodeFile = file; } -ARCodeFile* GetCodeFile(); -void SetCodeFile(ARCodeFile* file); + void RunCheats(); -void RunCheats(); +private: + ARCodeFile* CodeFile; // AR code file - frontend is responsible for managing this -} + // TEMPORARY + u8 (*BusRead8)(u32 addr); + u16 (*BusRead16)(u32 addr); + u32 (*BusRead32)(u32 addr); + void (*BusWrite8)(u32 addr, u8 val); + void (*BusWrite16)(u32 addr, u16 val); + void (*BusWrite32)(u32 addr, u32 val); + + void RunCheat(ARCode& arcode); +}; #endif // ARENGINE_H |