From 3d3e4240a05167c716437488be8cbb1dba4e8ec5 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Wed, 8 Nov 2023 16:21:30 -0500 Subject: 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 --- src/AREngine.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/AREngine.h b/src/AREngine.h index cd6d4a9..8557eb7 100644 --- a/src/AREngine.h +++ b/src/AREngine.h @@ -32,7 +32,7 @@ public: void SetCodeFile(ARCodeFile* file) { CodeFile = file; } void RunCheats(); - + void RunCheat(ARCode& arcode); private: ARCodeFile* CodeFile; // AR code file - frontend is responsible for managing this @@ -43,8 +43,6 @@ private: 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 -- cgit v1.2.3