diff --git a/src/crc32.c b/src/crc32.c index 2daa51d..fc70611 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -103,8 +103,3 @@ uint32 CalcCRC32(uint32 crc, uint8 *buf, uint32 len) { return(crc32(crc, buf, len)); } - -uint32 FCEUI_CRC32(uint32 crc, uint8 *buf, uint32 len) -{ - return(CalcCRC32(crc, buf, len)); -} diff --git a/src/driver.h b/src/driver.h index 2b17d6e..910f5f9 100644 --- a/src/driver.h +++ b/src/driver.h @@ -147,14 +147,7 @@ void FCEUI_Sound(int Rate); void FCEUI_SetSoundVolume(uint32 volume); void FCEUI_SetSoundQuality(int quality); -void FCEUI_SelectState(int); - -/* "fname" overrides the default save state filename code if non-NULL. */ -void FCEUI_SaveState(char *fname); -void FCEUI_LoadState(char *fname); - int32 FCEUI_GetDesiredFPS(void); -void FCEUI_SaveSnapshot(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); @@ -175,17 +168,7 @@ int FCEUI_SetCheat(uint32 which, const char *name, int32 a, int32 v, int compare void FCEUI_CheatSearchShowExcluded(void); void FCEUI_CheatSearchSetCurrentAsOriginal(void); -#define FCEUIOD_STATE 0 -#define FCEUIOD_SNAPS 1 -#define FCEUIOD_NV 2 -#define FCEUIOD_CHEATS 3 -#define FCEUIOD_MISC 4 -#define FCEUIOD_MOVIE 5 - -#define FCEUIOD__COUNT 6 - -void FCEUI_SetDirOverride(int which, char *n); - +#ifdef FCEUDEF_DEBUGGER void FCEUI_MemDump(uint16 a, int32 len, void (*callb)(uint16 a, uint8 v)); uint8 FCEUI_MemSafePeek(uint16 A); void FCEUI_MemPoke(uint16 a, uint8 v, int hl); @@ -193,10 +176,8 @@ void FCEUI_NMI(void); void FCEUI_IRQ(void); uint16 FCEUI_Disassemble(void *XA, uint16 a, char *stringo); void FCEUI_GetIVectors(uint16 *reset, uint16 *irq, uint16 *nmi); +#endif -uint32 FCEUI_CRC32(uint32 crc, uint8 *buf, uint32 len); - -/* void FCEUI_ToggleTileView(void); */ void FCEUI_SetLowPass(int q); void FCEUI_NSFSetVis(int mode); diff --git a/src/general.c b/src/general.c index f919283..3578ae1 100644 --- a/src/general.c +++ b/src/general.c @@ -50,13 +50,6 @@ void FCEUI_SetBaseDirectory(const char *dir) BaseDirectory[2047] = 0; } -static char *odirs[FCEUIOD__COUNT] = { 0, 0, 0, 0, 0, 0 }; /* odirs, odors. ^_^ */ - -void FCEUI_SetDirOverride(int which, char *n) -{ - odirs[which] = n; -} - char *FCEU_MakeFName(int type, int id1, char *cd1) { char tmp[4096 + 512] = {0}; /* +512 for no reason :D */ diff --git a/src/ppu.c b/src/ppu.c index f2536d8..628e564 100644 --- a/src/ppu.c +++ b/src/ppu.c @@ -384,13 +384,8 @@ void FCEUPPU_LineUpdate(void) { } } -static int tileview = 0; static int rendis = 0; -void FCEUI_ToggleTileView(void) { - tileview ^= 1; -} - void FCEUI_SetRenderDisable(int sprites, int bg) { if (sprites >= 0) { if (sprites == 2) rendis ^= 1; diff --git a/src/video.c b/src/video.c index 5f78db6..765f140 100644 --- a/src/video.c +++ b/src/video.c @@ -67,8 +67,6 @@ int FCEU_InitVirtualVideo(void) #include "drawing.h" -void FCEUI_SaveSnapshot(void) { } - void FCEU_PutImage(void) { if (GameInfo->type == GIT_NSF) @@ -104,8 +102,3 @@ void FCEU_DispMessage(enum retro_log_level level, unsigned duration, const char void FCEU_ResetMessages(void) { } - -int SaveSnapshot(void) -{ - return(0); -} diff --git a/src/video.h b/src/video.h index 9eef95b..34873d6 100644 --- a/src/video.h +++ b/src/video.h @@ -3,7 +3,6 @@ int FCEU_InitVirtualVideo(void); void FCEU_KillVirtualVideo(void); -int SaveSnapshot(void); extern uint8 *XBuf; extern uint8 *XDBuf; extern int show_crosshair;