Mercurial > vba-clojure
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gb/gbCheats.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,44 @@ 1.4 +#ifndef VBA_GB_CHEATS_H 1.5 +#define VBA_GB_CHEATS_H 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 + 1.11 +struct gbXxCheat 1.12 +{ 1.13 + char cheatDesc[100]; 1.14 + char cheatCode[20]; 1.15 +}; 1.16 + 1.17 +struct gbCheat 1.18 +{ 1.19 + char cheatCode[20]; 1.20 + char cheatDesc[32]; 1.21 + u16 address; 1.22 + int code; 1.23 + u8 compare; 1.24 + u8 value; 1.25 + bool enabled; 1.26 +}; 1.27 + 1.28 +extern void gbCheatsSaveGame(gzFile); 1.29 +extern void gbCheatsReadGame(gzFile, int); 1.30 +extern void gbCheatsSaveCheatList(const char *); 1.31 +extern bool gbCheatsLoadCheatList(const char *); 1.32 +extern bool gbCheatReadGSCodeFile(const char *); 1.33 + 1.34 +extern void gbAddGsCheat(const char *, const char *); 1.35 +extern void gbAddGgCheat(const char *, const char *); 1.36 +extern void gbCheatRemove(int); 1.37 +extern void gbCheatRemoveAll(); 1.38 +extern void gbCheatEnable(int); 1.39 +extern void gbCheatDisable(int); 1.40 +extern u8 gbCheatRead(u16); 1.41 + 1.42 +extern int gbCheatNumber; 1.43 +extern gbCheat gbCheatList[100]; 1.44 +extern bool gbCheatMap[0x10000]; 1.45 + 1.46 +#endif // VBA_GB_CHEATS_H 1.47 +