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=efcba75f8a730340df6c1b679a207723f98d1ee6;hp=0000000000000000000000000000000000000000;hpb=6a13ef3f56a80ac698d463f5d00235ea2a090f52;p=picodrive.git diff --git a/Pico/patch.h b/Pico/patch.h new file mode 100644 index 0000000..6e9420f --- /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__