view src/gb/gbCheats.h @ 194:67c42608ef9d

Further explorations in memory.
author Dylan Holmes <ocsenave@gmail.com>
date Fri, 23 Mar 2012 00:24:54 -0500
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_GB_CHEATS_H
2 #define VBA_GB_CHEATS_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 struct gbXxCheat
9 {
10 char cheatDesc[100];
11 char cheatCode[20];
12 };
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 };
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 *);
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);
39 extern int gbCheatNumber;
40 extern gbCheat gbCheatList[100];
41 extern bool gbCheatMap[0x10000];
43 #endif // VBA_GB_CHEATS_H