picodrive/pico/patch.h
iLag ed4a2193f7 Add support for Master System cheats.
notaz: drop wrong code (PicoWrite8_z80 are 68k functions, not for sms)
2017-10-14 00:53:09 +03:00

32 lines
523 B
C

#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;
unsigned char comp;
};
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__