Mercurial > vba-clojure
view src/gba/GBACheats.h @ 270:49096b8b99d5
script: delivered oak's parcel; got pokedex.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 26 Mar 2012 23:54:52 -0500 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #ifndef VBA_GBA_CHEATS_H2 #define VBA_GBA_CHEATS_H4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10008 #include "zlib.h"9 #include "../Port.h"11 struct CheatsData12 {13 int code;14 int size;15 int status;16 bool enabled;17 u32 address;18 u32 value;19 u32 oldValue;20 char codestring[20];21 char desc[32];22 };24 extern void cheatsAdd(const char *, const char *, u32, u32, int, int);25 extern void cheatsAddCheatCode(const char *code, const char *desc);26 extern void cheatsAddGSACode(const char *code, const char *desc, bool v3);27 extern void cheatsAddCBACode(const char *code, const char *desc);28 extern bool cheatsImportGSACodeFile(const char *name, int game, bool v3);29 extern void cheatsDelete(int number, bool restore);30 extern void cheatsDeleteAll(bool restore);31 extern void cheatsEnable(int number);32 extern void cheatsDisable(int number);33 extern void cheatsSaveGame(gzFile file);34 extern void cheatsReadGame(gzFile file);35 extern void cheatsSaveCheatList(const char *file);36 extern bool cheatsLoadCheatList(const char *file);37 extern void cheatsWriteMemory(u32 *, u32, u32);38 extern void cheatsWriteHalfWord(u16 *, u16, u16);39 extern void cheatsWriteByte(u8 *, u8);40 extern int cheatsCheckKeys(u32, u32);41 extern int cheatsNumber;42 extern CheatsData cheatsList[100];44 #endif // GBA_CHEATS_H