summaryrefslogtreecommitdiff
path: root/cheats.h
diff options
context:
space:
mode:
Diffstat (limited to 'cheats.h')
-rw-r--r--cheats.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/cheats.h b/cheats.h
index 496df15..b6e0a5d 100644
--- a/cheats.h
+++ b/cheats.h
@@ -23,9 +23,17 @@
#define MAX_CHEATS 20
#define MAX_CHEAT_CODES 64
+typedef enum {
+ CheatNoError = 0,
+ CheatErrorTooMany,
+ CheatErrorTooBig,
+ CheatErrorEncrypted,
+ CheatErrorNotSupported
+} cheat_error;
+
void process_cheats(void);
-void cheat_parse(unsigned index, const char *code);
-void cheat_clear();
+cheat_error cheat_parse(unsigned index, const char *code);
+void cheat_clear(void);
extern u32 cheat_master_hook;