Patch.h 502 B

12345678910111213141516171819202122232425262728293031
  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. };
  15. extern struct patch_inst *PicoPatches;
  16. extern int PicoPatchCount;
  17. int PicoPatchLoad(const char *fname);
  18. void PicoPatchUnload(void);
  19. void PicoPatchPrepare(void);
  20. void PicoPatchApply(void);
  21. #ifdef __cplusplus
  22. } // extern "C"
  23. #endif
  24. #endif // _GENIE_DECODE_H__