Add support for Master System cheats.
[picodrive.git] / pico / patch.h
1 #ifndef _GENIE_DECODE_H__
2 #define _GENIE_DECODE_H__
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 struct patch_inst
9 {
10         char code[12];
11         char name[52];
12         unsigned int active;
13         unsigned int addr;
14         unsigned short data;
15         unsigned short data_old;
16         unsigned char comp;
17 };
18
19 extern struct patch_inst *PicoPatches;
20 extern int PicoPatchCount;
21
22 int  PicoPatchLoad(const char *fname);
23 void PicoPatchUnload(void);
24 void PicoPatchPrepare(void);
25 void PicoPatchApply(void);
26
27
28 #ifdef __cplusplus
29 } // extern "C"
30 #endif
31
32 #endif // _GENIE_DECODE_H__