patch.h 523 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _GENIE_DECODE_H__
  2. #define _GENIE_DECODE_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. struct patch_inst
  7. {
  8. char code[12];
  9. char name[52];
  10. unsigned int active;
  11. unsigned int addr;
  12. unsigned short data;
  13. unsigned short data_old;
  14. unsigned char comp;
  15. };
  16. extern struct patch_inst *PicoPatches;
  17. extern int PicoPatchCount;
  18. int PicoPatchLoad(const char *fname);
  19. void PicoPatchUnload(void);
  20. void PicoPatchPrepare(void);
  21. void PicoPatchApply(void);
  22. #ifdef __cplusplus
  23. } // extern "C"
  24. #endif
  25. #endif // _GENIE_DECODE_H__