view src/gba/GBACheats.h @ 27:b970226568d2

brought in filters package
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 20:32:31 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_GBA_CHEATS_H
2 #define VBA_GBA_CHEATS_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 #include "zlib.h"
9 #include "../Port.h"
11 struct CheatsData
12 {
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