6e9420f8541987ce7fb70c6bfa5ccb11a8ffe5c4
[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 };
17
18 extern struct patch_inst *PicoPatches;
19 extern int PicoPatchCount;
20
21 int  PicoPatchLoad(const char *fname);
22 void PicoPatchUnload(void);
23 void PicoPatchPrepare(void);
24 void PicoPatchApply(void);
25
26
27 #ifdef __cplusplus
28 } // extern "C"
29 #endif
30
31 #endif // _GENIE_DECODE_H__