Cleanup driver.h

This commit is contained in:
LibretroAdmin
2022-09-05 01:20:43 +02:00
parent 8df9b2ed10
commit 45532d2c4a
6 changed files with 2 additions and 46 deletions

View File

@@ -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));
}

View File

@@ -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);

View File

@@ -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 */

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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;