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