| 1 | #ifndef __MDFN_MEMPATCHER_DRIVER_H |
| 2 | #define __MDFN_MEMPATCHER_DRIVER_H |
| 3 | |
| 4 | int MDFNI_DecodePAR(const char *code, uint32 *a, uint8 *v, uint8 *c, char *type); |
| 5 | int MDFNI_DecodeGG(const char *str, uint32 *a, uint8 *v, uint8 *c, char *type); |
| 6 | int MDFNI_AddCheat(const char *name, uint32 addr, uint64 val, uint64 compare, char type, unsigned int length, bool bigendian); |
| 7 | int MDFNI_DelCheat(uint32 which); |
| 8 | int MDFNI_ToggleCheat(uint32 which); |
| 9 | |
| 10 | int32 MDFNI_CheatSearchGetCount(void); |
| 11 | void MDFNI_CheatSearchGetRange(uint32 first, uint32 last, int (*callb)(uint32 a, uint8 last, uint8 current)); |
| 12 | void MDFNI_CheatSearchGet(int (*callb)(uint32 a, uint64 last, uint64 current, void *data), void *data); |
| 13 | void MDFNI_CheatSearchBegin(void); |
| 14 | void MDFNI_CheatSearchEnd(int type, uint64 v1, uint64 v2, unsigned int bytelen, bool bigendian); |
| 15 | void MDFNI_ListCheats(int (*callb)(char *name, uint32 a, uint64 v, uint64 compare, int s, char type, unsigned int length, bool bigendian, void *data), void *data); |
| 16 | |
| 17 | int MDFNI_GetCheat(uint32 which, char **name, uint32 *a, uint64 *v, uint64 *compare, int *s, char *type, unsigned int *length, bool *bigendian); |
| 18 | int MDFNI_SetCheat(uint32 which, const char *name, uint32 a, uint64 v, uint64 compare, int s, char type, unsigned int length, bool bigendian); |
| 19 | |
| 20 | void MDFNI_CheatSearchShowExcluded(void); |
| 21 | void MDFNI_CheatSearchSetCurrentAsOriginal(void); |
| 22 | |
| 23 | #endif |