| 1 | #ifndef __MDFN_MEMPATCHER_H |
| 2 | #define __MDFN_MEMPATCHER_H |
| 3 | |
| 4 | #include "mempatcher-driver.h" |
| 5 | |
| 6 | typedef struct __SUBCHEAT |
| 7 | { |
| 8 | uint32 addr; |
| 9 | uint8 value; |
| 10 | int compare; // < 0 on no compare |
| 11 | } SUBCHEAT; |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | void MDFNMP_Kill(void); |
| 18 | |
| 19 | void MDFNMP_ApplyPeriodicCheats(void); |
| 20 | |
| 21 | void MDFNMP_InstallReadPatches(void); |
| 22 | |
| 23 | bool MDFNMP_Init(uint32 ps, uint32 numpages); |
| 24 | |
| 25 | void MDFNMP_AddRAM(uint32 size, uint32 address, uint8 *RAM); |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | void MDFNMP_RemoveReadPatches(void); |
| 32 | |
| 33 | |
| 34 | #endif |