mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-01 08:25:12 +01:00
45 lines
976 B
C
45 lines
976 B
C
#ifndef GBCHEATS_H
|
|
#define GBCHEATS_H
|
|
|
|
#include "../System.h"
|
|
|
|
struct gbXxCheat {
|
|
char cheatDesc[100];
|
|
char cheatCode[20];
|
|
};
|
|
|
|
struct gbCheat {
|
|
char cheatCode[20];
|
|
char cheatDesc[32];
|
|
u16 address;
|
|
int code;
|
|
u8 compare;
|
|
u8 value;
|
|
bool enabled;
|
|
};
|
|
|
|
void gbCheatsSaveGame(gzFile);
|
|
void gbCheatsReadGame(gzFile, int);
|
|
void gbCheatsReadGameSkip(gzFile, int);
|
|
void gbCheatsSaveCheatList(const char *);
|
|
bool gbCheatsLoadCheatList(const char *);
|
|
bool gbCheatReadGSCodeFile(const char *);
|
|
|
|
bool gbAddGsCheat(const char *, const char*);
|
|
bool gbAddGgCheat(const char *, const char*);
|
|
void gbCheatRemove(int);
|
|
void gbCheatRemoveAll();
|
|
void gbCheatEnable(int);
|
|
void gbCheatDisable(int);
|
|
u8 gbCheatRead(u16);
|
|
void gbCheatWrite(bool);
|
|
bool gbVerifyGsCode(const char *code);
|
|
bool gbVerifyGgCode(const char *code);
|
|
|
|
|
|
extern int gbCheatNumber;
|
|
extern gbCheat gbCheatList[100];
|
|
extern bool gbCheatMap[0x10000];
|
|
|
|
#endif // GBCHEATS_H
|