Removed idle skipping hacks in Cave drivers
This commit is contained in:
parent
a1dfaf99ee
commit
fee495ae58
|
@ -18,8 +18,6 @@ static UINT8 DrvReset = 0;
|
|||
static UINT8 bDrawScreen;
|
||||
static bool bVBlank;
|
||||
|
||||
static INT32 nSpeedhack;
|
||||
|
||||
static INT8 nVideoIRQ;
|
||||
static INT8 nSoundIRQ;
|
||||
static INT8 nUnknownIRQ;
|
||||
|
@ -296,14 +294,6 @@ static INT32 DrvDraw()
|
|||
|
||||
inline static INT32 CheckSleep(INT32)
|
||||
{
|
||||
#if 1 && defined USE_SPEEDHACKS
|
||||
INT32 nCurrentPC = SekGetPC(-1) - nSpeedhack;
|
||||
|
||||
if (!nIRQPending && nCurrentPC >= 0 && nCurrentPC <= 12) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -582,15 +572,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
// US version: 0x0571AC - 0x0571B8
|
||||
// Japan version: 0x056DF4 - 0x056E00
|
||||
|
||||
nSpeedhack = (strcmp(BurnDrvGetTextA(DRV_NAME), "ddonpach") == 0) ? 0x0571AC : 0x056DF4;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -370,15 +370,6 @@ static INT32 DrvDraw()
|
|||
|
||||
inline static INT32 CheckSleep(INT32)
|
||||
{
|
||||
#if 1 && defined USE_SPEEDHACKS
|
||||
INT32 nCurrentPC = SekGetPC(-1);
|
||||
|
||||
// All versions are the same
|
||||
if (!nIRQPending && nCurrentPC >= 0x002ED6 && nCurrentPC <= 0x002EE2) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -641,10 +632,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -18,8 +18,6 @@ static UINT8 DrvReset = 0;
|
|||
static UINT8 bDrawScreen;
|
||||
static bool bVBlank;
|
||||
|
||||
static INT32 nSpeedhack;
|
||||
|
||||
static INT8 nVideoIRQ;
|
||||
static INT8 nSoundIRQ;
|
||||
static INT8 nUnknownIRQ;
|
||||
|
@ -305,14 +303,6 @@ static INT32 DrvDraw()
|
|||
|
||||
inline static INT32 CheckSleep(INT32)
|
||||
{
|
||||
#if 1 && defined USE_SPEEDHACKS
|
||||
INT32 nCurrentPC = SekGetPC(-1) - nSpeedhack;
|
||||
|
||||
if (!nIRQPending && nCurrentPC >= 0 && nCurrentPC <= 12) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -592,24 +582,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
// 4/22 version: 0x04F37C - 0x04F388
|
||||
// 4/21 version: 0x04F150 - 0x04F15C
|
||||
// 4/14 version: 0x04F152 - 0x04F15E
|
||||
|
||||
if (strcmp(BurnDrvGetTextA(DRV_NAME), "esprade") == 0) {
|
||||
nSpeedhack = 0x04F37C;
|
||||
} else {
|
||||
if (strcmp(BurnDrvGetTextA(DRV_NAME), "espradej") == 0) {
|
||||
nSpeedhack = 0x04F152;
|
||||
} else {
|
||||
nSpeedhack = 0x04F150;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -18,8 +18,6 @@ static UINT8 DrvReset = 0;
|
|||
static UINT8 bDrawScreen;
|
||||
static bool bVBlank;
|
||||
|
||||
static INT32 nSpeedhack;
|
||||
|
||||
static INT8 nVideoIRQ;
|
||||
static INT8 nSoundIRQ;
|
||||
static INT8 nUnknownIRQ;
|
||||
|
@ -284,13 +282,6 @@ static INT32 DrvDraw()
|
|||
|
||||
inline static INT32 CheckSleep(INT32)
|
||||
{
|
||||
#if 0 && defined USE_SPEEDHACKS
|
||||
UINT32 nCurrentPC = SekGetPC(-1);
|
||||
|
||||
if (!nIRQPending && nCurrentPC >= nSpeedhack && nCurrentPC <= nSpeedhack + 0x18) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -559,15 +550,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
// Fever SOS: 0x07766C - 0x077684
|
||||
// Dangun Feveron: 0x0772F2 - 0x07730A
|
||||
|
||||
nSpeedhack = (strcmp(BurnDrvGetTextA(DRV_NAME), "feversos") == 0) ? 0x07766C : 0x0772F2;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -316,14 +316,6 @@ inline static void guwangeClearOpposites(UINT8* nJoystickInputs)
|
|||
|
||||
inline static INT32 CheckSleep(INT32)
|
||||
{
|
||||
#if 1 && defined USE_SPEEDHACKS
|
||||
INT32 nCurrentPC = SekGetPC(-1);
|
||||
|
||||
if (!nIRQPending && nCurrentPC >= 0x06D6DE && nCurrentPC <= 0x06D6F4) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -621,10 +613,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -697,10 +697,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -746,10 +746,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -765,10 +765,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -929,10 +929,6 @@ static INT32 DrvInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
@ -1006,10 +1002,6 @@ static INT32 PlegendsInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, _T(" * Using speed-hacks (detecting idle loops).\n"));
|
||||
#endif
|
||||
|
||||
DrvDoReset(); // Reset machine
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -956,12 +956,6 @@ static INT32 gameInit()
|
|||
|
||||
bDrawScreen = true;
|
||||
|
||||
#if 0
|
||||
#if defined FBA_DEBUG && defined USE_SPEEDHACKS
|
||||
bprintf(PRINT_IMPORTANT, " * Using speed-hacks (detecting idle loops).\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
DrvDoReset();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue