Mercurial > vba-clojure
view src/gb/gbCheats.h @ 396:c7a43f4ffd9d
fixed bug where A was always 0 when the self-modigying code was executed.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 13 Apr 2012 04:50:58 -0500 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #ifndef VBA_GB_CHEATS_H2 #define VBA_GB_CHEATS_H4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10008 struct gbXxCheat9 {10 char cheatDesc[100];11 char cheatCode[20];12 };14 struct gbCheat15 {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