vbagx/source/vba/gb/gbCheats.h

45 lines
976 B
C
Raw Permalink Normal View History

2009-01-10 03:41:39 +01:00
#ifndef GBCHEATS_H
#define GBCHEATS_H
2008-10-18 08:49:04 +02:00
#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);
2009-01-10 03:41:39 +01:00
void gbCheatsReadGameSkip(gzFile, int);
2008-10-18 08:49:04 +02:00
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];
2009-01-10 03:41:39 +01:00
#endif // GBCHEATS_H