Mercurial > vba-clojure
comparison src/gb/gbCheats.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_GB_CHEATS_H | |
2 #define VBA_GB_CHEATS_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 struct gbXxCheat | |
9 { | |
10 char cheatDesc[100]; | |
11 char cheatCode[20]; | |
12 }; | |
13 | |
14 struct gbCheat | |
15 { | |
16 char cheatCode[20]; | |
17 char cheatDesc[32]; | |
18 u16 address; | |
19 int code; | |
20 u8 compare; | |
21 u8 value; | |
22 bool enabled; | |
23 }; | |
24 | |
25 extern void gbCheatsSaveGame(gzFile); | |
26 extern void gbCheatsReadGame(gzFile, int); | |
27 extern void gbCheatsSaveCheatList(const char *); | |
28 extern bool gbCheatsLoadCheatList(const char *); | |
29 extern bool gbCheatReadGSCodeFile(const char *); | |
30 | |
31 extern void gbAddGsCheat(const char *, const char *); | |
32 extern void gbAddGgCheat(const char *, const char *); | |
33 extern void gbCheatRemove(int); | |
34 extern void gbCheatRemoveAll(); | |
35 extern void gbCheatEnable(int); | |
36 extern void gbCheatDisable(int); | |
37 extern u8 gbCheatRead(u16); | |
38 | |
39 extern int gbCheatNumber; | |
40 extern gbCheat gbCheatList[100]; | |
41 extern bool gbCheatMap[0x10000]; | |
42 | |
43 #endif // VBA_GB_CHEATS_H | |
44 |