mirror of
https://github.com/libretro/fbalpha2012_neogeo.git
synced 2025-02-21 10:02:18 +00:00
Cleanups
This commit is contained in:
parent
632cd447b7
commit
05045e103e
@ -19,8 +19,6 @@ bool bBurnUseASMCPUEmulation = false;
|
||||
|
||||
UINT32 nCurrentFrame; // Framecount for emulated game
|
||||
|
||||
UINT32 nFramesEmulated; // Counters for FPS display
|
||||
UINT32 nFramesRendered; //
|
||||
bool bForce60Hz = false;
|
||||
INT32 nBurnFPS = 6000;
|
||||
INT32 nBurnCPUSpeedAdjust = 0x0100; // CPU speed adjustment (clock * nBurnCPUSpeedAdjust / 0x0100)
|
||||
@ -45,8 +43,6 @@ INT32 nMaxPlayers;
|
||||
|
||||
bool bSaveCRoms = 0;
|
||||
|
||||
UINT32 *pBurnDrvPalette;
|
||||
|
||||
extern "C" INT32 BurnLibInit()
|
||||
{
|
||||
BurnLibExit();
|
||||
@ -605,8 +601,6 @@ extern "C" INT32 BurnDrvExit()
|
||||
|
||||
nBurnCPUSpeedAdjust = 0x0100;
|
||||
|
||||
pBurnDrvPalette = NULL;
|
||||
|
||||
INT32 nRet = pDriver[nBurnDrvActive]->Exit(); // Forward to drivers function
|
||||
|
||||
BurnExitMemoryManager();
|
||||
@ -657,16 +651,6 @@ extern "C" INT32 BurnDrvFrame()
|
||||
return pDriver[nBurnDrvActive]->Frame(); // Forward to drivers function
|
||||
}
|
||||
|
||||
// Force redraw of the screen
|
||||
extern "C" INT32 BurnDrvRedraw()
|
||||
{
|
||||
if (pDriver[nBurnDrvActive]->Redraw) {
|
||||
return pDriver[nBurnDrvActive]->Redraw(); // Forward to drivers function
|
||||
}
|
||||
|
||||
return 1; // No funtion provide, so simply return
|
||||
}
|
||||
|
||||
// Refresh Palette
|
||||
extern "C" INT32 BurnRecalcPal()
|
||||
{
|
||||
@ -679,11 +663,6 @@ extern "C" INT32 BurnRecalcPal()
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" INT32 BurnDrvGetPaletteEntries()
|
||||
{
|
||||
return pDriver[nBurnDrvActive]->nPaletteEntries;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
INT32 (__cdecl *BurnExtProgressRangeCallback)(double fProgressRange) = NULL;
|
||||
@ -718,34 +697,6 @@ INT32 BurnSetRefreshRate(double dFrameRate)
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline static INT32 BurnClearSize(INT32 w, INT32 h)
|
||||
{
|
||||
UINT8 *pl;
|
||||
INT32 y;
|
||||
|
||||
w *= nBurnBpp;
|
||||
|
||||
// clear the screen to zero
|
||||
for (pl = pBurnDraw, y = 0; y < h; pl += nBurnPitch, y++) {
|
||||
memset(pl, 0x00, w);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
INT32 BurnClearScreen()
|
||||
{
|
||||
struct BurnDriver* pbd = pDriver[nBurnDrvActive];
|
||||
|
||||
if (pbd->Flags & BDF_ORIENTATION_VERTICAL) {
|
||||
BurnClearSize(pbd->nHeight, pbd->nWidth);
|
||||
} else {
|
||||
BurnClearSize(pbd->nWidth, pbd->nHeight);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Byteswaps an area of memory
|
||||
INT32 BurnByteswap(UINT8* pMem, INT32 nLen)
|
||||
{
|
||||
@ -812,8 +763,6 @@ void logerror(char* szFormat, ...)
|
||||
va_end(vaFormat);
|
||||
|
||||
bprintf(PRINT_ERROR, _T("%hs"), szLogMessage);
|
||||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -112,10 +112,6 @@ inline static INT32 GetCurrentFrame() {
|
||||
return nCurrentFrame;
|
||||
}
|
||||
|
||||
inline static void SetCurrentFrame(const UINT32 n) {
|
||||
nCurrentFrame = n;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Driver info structures
|
||||
|
||||
@ -179,9 +175,6 @@ struct BurnDIPInfo {
|
||||
|
||||
extern bool bBurnUseASMCPUEmulation;
|
||||
|
||||
extern UINT32 nFramesEmulated;
|
||||
extern UINT32 nFramesRendered;
|
||||
|
||||
extern bool bForce60Hz;
|
||||
|
||||
extern INT32 nBurnFPS;
|
||||
@ -208,8 +201,6 @@ extern INT16* pBurnSoundOut; // Pointer to output buffer
|
||||
extern INT32 nInterpolation; // Desired interpolation level for ADPCM/PCM sound
|
||||
extern INT32 nFMInterpolation; // Desired interpolation level for FM sound
|
||||
|
||||
extern UINT32 *pBurnDrvPalette;
|
||||
|
||||
#define PRINT_NORMAL (0)
|
||||
#define PRINT_UI (1)
|
||||
#define PRINT_IMPORTANT (2)
|
||||
@ -227,10 +218,8 @@ INT32 BurnDrvExit();
|
||||
|
||||
INT32 BurnDrvCartridgeSetup(BurnCartrigeCommand nCommand);
|
||||
|
||||
INT32 BurnDrvFrame();
|
||||
INT32 BurnDrvRedraw();
|
||||
INT32 BurnRecalcPal();
|
||||
INT32 BurnDrvGetPaletteEntries();
|
||||
INT32 BurnDrvFrame(void);
|
||||
INT32 BurnRecalcPal(void);
|
||||
|
||||
INT32 BurnSetProgressRange(double dProgressRange);
|
||||
INT32 BurnUpdateProgress(double dProgressStep, const TCHAR* pszText, bool bAbs);
|
||||
@ -278,8 +267,6 @@ INT32 BurnDrvGetFamilyFlags();
|
||||
INT32 BurnDrvGetSampleInfo(struct BurnSampleInfo *pri, UINT32 i);
|
||||
INT32 BurnDrvGetSampleName(char** pszName, UINT32 i, INT32 nAka);
|
||||
|
||||
void Reinitialise();
|
||||
|
||||
extern bool bDoIpsPatch;
|
||||
void IpsApplyPatches(UINT8* base, char* rom_name);
|
||||
|
||||
|
@ -105,7 +105,6 @@ struct BurnDriver {
|
||||
// burn.cpp
|
||||
INT32 BurnSetRefreshRate(double dRefreshRate);
|
||||
INT32 BurnByteswap(UINT8* pm,INT32 nLen);
|
||||
INT32 BurnClearScreen();
|
||||
|
||||
// load.cpp
|
||||
INT32 BurnLoadRom(UINT8* Dest, INT32 i, INT32 nGap);
|
||||
|
@ -1169,15 +1169,7 @@ int InputSetCooperativeLevel(const bool bExclusive, const bool bForeGround)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Reinitialise(void)
|
||||
{
|
||||
// Update the geometry, some games (sfiii2) and systems (megadrive) need it.
|
||||
struct retro_system_av_info av_info;
|
||||
retro_get_system_av_info(&av_info);
|
||||
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &av_info);
|
||||
}
|
||||
|
||||
static void ForceFrameStep()
|
||||
static void ForceFrameStep(void)
|
||||
{
|
||||
nBurnLayer = 0xff;
|
||||
pBurnSoundOut = g_audio_buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user