dmnt-cheat: implement cheat loading from SD

This commit is contained in:
Michael Scire
2019-03-04 20:13:52 -08:00
parent 5ef3ca9364
commit 34af93b72f
4 changed files with 212 additions and 4 deletions

View File

@@ -21,6 +21,8 @@
#include "dmnt_cheat_types.hpp"
class DmntCheatManager {
public:
static constexpr size_t MaxCheatCount = 0x80;
private:
static Handle PrepareDebugNextApplication();
static void OnNewApplicationLaunch();
@@ -30,6 +32,12 @@ class DmntCheatManager {
static bool HasActiveCheatProcess();
static void CloseActiveCheatProcess();
static void ContinueCheatProcess();
static void ResetCheatEntry(size_t i);
static void ResetAllCheatEntries();
static CheatEntry *GetFreeCheatEntry();
static bool ParseCheats(const char *cht_txt, size_t len);
static bool LoadCheats(u64 title_id, const u8 *build_id);
public:
static bool GetHasActiveCheatProcess();
static Handle GetCheatProcessEventHandle();