X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=driver.h;h=1e7345e1ee8ebeae1c5de595ffc495051ebc09f4;hp=aa6a2c7fe1e62a49d2c2aa244fb5791a6e5f6c9d;hb=ebde7d27f12cb4e1002670fd481076fb9ba509ff;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67 diff --git a/driver.h b/driver.h index aa6a2c7..1e7345e 100644 --- a/driver.h +++ b/driver.h @@ -57,15 +57,21 @@ void FCEUI_SetInput(int port, int type, void *ptr, int attrib); void FCEUI_SetInputFC(int type, void *ptr, int attrib); void FCEUI_DisableFourScore(int s); +void FCEUI_GetNTSCTH(int *tint, int *hue); +void FCEUI_SetNTSCTH(int n, int tint, int hue); + #include "version.h" +#define SI_UNSET -1 #define SI_NONE 0 #define SI_GAMEPAD 1 #define SI_ZAPPER 2 #define SI_POWERPADA 3 #define SI_POWERPADB 4 #define SI_ARKANOID 5 +#define SI_MOUSE 6 +#define SIFC_UNSET -1 #define SIFC_NONE 0 #define SIFC_ARKANOID 1 #define SIFC_SHADOW 2 @@ -101,12 +107,16 @@ void FCEUI_SaveExtraDataUnderBase(int a); /* name=path and file to load. returns 0 on failure, 1 on success */ FCEUGI *FCEUI_LoadGame(char *name); +extern int LoadGameLastError; /* allocates memory. 0 on failure, 1 on success. */ int FCEUI_Initialize(void); +void FCEUI_Kill(void); +void FCEUI_SetEmuMode(int is_new); + /* begins emulation. Returns after FCEUI_CloseGame() is called */ -void FCEUI_Emulate(void); +extern void (*FCEUI_Emulate)(void); /* Closes currently loaded game, causes FCEUI_Emulate to return */ void FCEUI_CloseGame(void); @@ -161,23 +171,28 @@ void FCEUI_LoadState(void); int32 FCEUI_GetDesiredFPS(void); void FCEUI_SaveSnapshot(void); void FCEU_DispMessage(char *format, ...); +void FCEU_CancelDispMessage(void); #define FCEUI_DispMessage FCEU_DispMessage -int FCEUI_AddCheat(char *name, uint32 addr, uint8 val); +int FCEUI_AddCheat(const char *name, uint32 addr, uint8 val, int compare, int type); int FCEUI_DelCheat(uint32 which); int32 FCEUI_CheatSearchGetCount(void); void FCEUI_CheatSearchGetRange(uint32 first, uint32 last, int (*callb)(uint32 a, uint8 last, uint8 current)); -void FCEUI_CheatSearchGet(int (*callb)(uint32 a, uint8 last, uint8 current)); +void FCEUI_CheatSearchGet(int (*callb)(uint32 a, uint8 last, uint8 current, void *data),void *data); void FCEUI_CheatSearchBegin(void); void FCEUI_CheatSearchEnd(int type, uint8 v1, uint8 v2); -void FCEUI_ListCheats(int (*callb)(char *name, uint32 a, uint8 v, int s)); +void FCEUI_ListCheats(int (*callb)(char *name, uint32 a, uint8 v, int compare, int s, int type, void *data), void *data); -int FCEUI_GetCheat(uint32 which, char **name, uint32 *a, uint8 *v, int *s); -int FCEUI_SetCheat(uint32 which, char *name, int32 a, int32 v, int s); +int FCEUI_GetCheat(uint32 which, char **name, uint32 *a, uint8 *v, int *compare, int *s, int *type); +int FCEUI_SetCheat(uint32 which, const char *name, int32 a, int32 v, int compare,int s, int type); void FCEUI_CheatSearchShowExcluded(void); void FCEUI_CheatSearchSetCurrentAsOriginal(void); +int FCEUI_DecodePAR(const char *code, uint16 *a, uint8 *v, int *c, int *type); +int FCEUI_DecodeGG(const char *str, uint16 *a, uint8 *v, int *c); +int FCEUI_ToggleCheat(uint32 which); + #define FCEUIOD_STATE 0 #define FCEUIOD_SNAPS 1 #define FCEUIOD_NV 2