Make AREngine::RunCheat public (#1872)

- I use it directly in melonDS DS to apply single cheats without using ARCodeFile
- Before the AREngine refactor I could just redeclare the function in my code
- Now I can't
This commit is contained in:
Jesse Talavera-Greenberg 2023-11-08 16:21:30 -05:00 committed by GitHub
parent 8b47178add
commit 3d3e4240a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ public:
void SetCodeFile(ARCodeFile* file) { CodeFile = file; } void SetCodeFile(ARCodeFile* file) { CodeFile = file; }
void RunCheats(); void RunCheats();
void RunCheat(ARCode& arcode);
private: private:
ARCodeFile* CodeFile; // AR code file - frontend is responsible for managing this ARCodeFile* CodeFile; // AR code file - frontend is responsible for managing this
@ -43,8 +43,6 @@ private:
void (*BusWrite8)(u32 addr, u8 val); void (*BusWrite8)(u32 addr, u8 val);
void (*BusWrite16)(u32 addr, u16 val); void (*BusWrite16)(u32 addr, u16 val);
void (*BusWrite32)(u32 addr, u32 val); void (*BusWrite32)(u32 addr, u32 val);
void RunCheat(ARCode& arcode);
}; };
#endif // ARENGINE_H #endif // ARENGINE_H