X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpatch.h;fp=pico%2Fpatch.h;h=6e9420f8541987ce7fb70c6bfa5ccb11a8ffe5c4;hb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;hp=0000000000000000000000000000000000000000;hpb=d158df697da66bcda57307e35fc77929cfa5053c;p=picodrive.git diff --git a/pico/patch.h b/pico/patch.h new file mode 100644 index 00000000..6e9420f8 --- /dev/null +++ b/pico/patch.h @@ -0,0 +1,31 @@ +#ifndef _GENIE_DECODE_H__ +#define _GENIE_DECODE_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +struct patch_inst +{ + char code[12]; + char name[52]; + unsigned int active; + unsigned int addr; + unsigned short data; + unsigned short data_old; +}; + +extern struct patch_inst *PicoPatches; +extern int PicoPatchCount; + +int PicoPatchLoad(const char *fname); +void PicoPatchUnload(void); +void PicoPatchPrepare(void); +void PicoPatchApply(void); + + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _GENIE_DECODE_H__