Mercurial > vba-clojure
comparison src/gba/GBACheats.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_GBA_CHEATS_H | |
2 #define VBA_GBA_CHEATS_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 #include "zlib.h" | |
9 #include "../Port.h" | |
10 | |
11 struct CheatsData | |
12 { | |
13 int code; | |
14 int size; | |
15 int status; | |
16 bool enabled; | |
17 u32 address; | |
18 u32 value; | |
19 u32 oldValue; | |
20 char codestring[20]; | |
21 char desc[32]; | |
22 }; | |
23 | |
24 extern void cheatsAdd(const char *, const char *, u32, u32, int, int); | |
25 extern void cheatsAddCheatCode(const char *code, const char *desc); | |
26 extern void cheatsAddGSACode(const char *code, const char *desc, bool v3); | |
27 extern void cheatsAddCBACode(const char *code, const char *desc); | |
28 extern bool cheatsImportGSACodeFile(const char *name, int game, bool v3); | |
29 extern void cheatsDelete(int number, bool restore); | |
30 extern void cheatsDeleteAll(bool restore); | |
31 extern void cheatsEnable(int number); | |
32 extern void cheatsDisable(int number); | |
33 extern void cheatsSaveGame(gzFile file); | |
34 extern void cheatsReadGame(gzFile file); | |
35 extern void cheatsSaveCheatList(const char *file); | |
36 extern bool cheatsLoadCheatList(const char *file); | |
37 extern void cheatsWriteMemory(u32 *, u32, u32); | |
38 extern void cheatsWriteHalfWord(u16 *, u16, u16); | |
39 extern void cheatsWriteByte(u8 *, u8); | |
40 extern int cheatsCheckKeys(u32, u32); | |
41 extern int cheatsNumber; | |
42 extern CheatsData cheatsList[100]; | |
43 | |
44 #endif // GBA_CHEATS_H |