beetle-pce-fast-libretro/mednafen/mempatcher.h

26 lines
475 B
C
Raw Normal View History

2012-06-03 15:48:14 +00:00
#ifndef __MDFN_MEMPATCHER_H
#define __MDFN_MEMPATCHER_H
#include "mempatcher-driver.h"
typedef struct __SUBCHEAT
{
uint32 addr;
uint8 value;
int compare; // < 0 on no compare
} SUBCHEAT;
extern bool SubCheatsOn;
bool MDFNMP_Init(uint32 ps, uint32 numpages);
void MDFNMP_AddRAM(uint32 size, uint32 address, uint8 *RAM);
void MDFNMP_Kill(void);
void MDFNMP_InstallReadPatches(void);
void MDFNMP_RemoveReadPatches(void);
void MDFNMP_ApplyPeriodicCheats(void);
#endif