Mercurial > vba-clojure
diff src/gba/GBACheats.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/gba/GBACheats.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,44 @@ 1.4 +#ifndef VBA_GBA_CHEATS_H 1.5 +#define VBA_GBA_CHEATS_H 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 + 1.11 +#include "zlib.h" 1.12 +#include "../Port.h" 1.13 + 1.14 +struct CheatsData 1.15 +{ 1.16 + int code; 1.17 + int size; 1.18 + int status; 1.19 + bool enabled; 1.20 + u32 address; 1.21 + u32 value; 1.22 + u32 oldValue; 1.23 + char codestring[20]; 1.24 + char desc[32]; 1.25 +}; 1.26 + 1.27 +extern void cheatsAdd(const char *, const char *, u32, u32, int, int); 1.28 +extern void cheatsAddCheatCode(const char *code, const char *desc); 1.29 +extern void cheatsAddGSACode(const char *code, const char *desc, bool v3); 1.30 +extern void cheatsAddCBACode(const char *code, const char *desc); 1.31 +extern bool cheatsImportGSACodeFile(const char *name, int game, bool v3); 1.32 +extern void cheatsDelete(int number, bool restore); 1.33 +extern void cheatsDeleteAll(bool restore); 1.34 +extern void cheatsEnable(int number); 1.35 +extern void cheatsDisable(int number); 1.36 +extern void cheatsSaveGame(gzFile file); 1.37 +extern void cheatsReadGame(gzFile file); 1.38 +extern void cheatsSaveCheatList(const char *file); 1.39 +extern bool cheatsLoadCheatList(const char *file); 1.40 +extern void cheatsWriteMemory(u32 *, u32, u32); 1.41 +extern void cheatsWriteHalfWord(u16 *, u16, u16); 1.42 +extern void cheatsWriteByte(u8 *, u8); 1.43 +extern int cheatsCheckKeys(u32, u32); 1.44 +extern int cheatsNumber; 1.45 +extern CheatsData cheatsList[100]; 1.46 + 1.47 +#endif // GBA_CHEATS_H