Add support for Master System cheats.
[picodrive.git] / pico / patch.h
CommitLineData
b67ef287 1#ifndef _GENIE_DECODE_H__
2#define _GENIE_DECODE_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8struct 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;
ed4a2193 16 unsigned char comp;
b67ef287 17};
18
19extern struct patch_inst *PicoPatches;
20extern int PicoPatchCount;
21
22int PicoPatchLoad(const char *fname);
23void PicoPatchUnload(void);
24void PicoPatchPrepare(void);
25void PicoPatchApply(void);
26
27
28#ifdef __cplusplus
29} // extern "C"
30#endif
31
32#endif // _GENIE_DECODE_H__