Fix music in Spinal Breakers (d_aerofgt.cpp)

This commit is contained in:
dinkc64 2014-06-05 07:27:35 +00:00
parent 0a3ca0d5ad
commit 6f2c5a9be0
1 changed files with 8 additions and 2 deletions

View File

@ -82,6 +82,7 @@ static UINT16 bg1scrolly, bg2scrolly;
static INT32 nAerofgtZ80Bank;
static UINT8 nSoundlatch;
static UINT8 spinlbrkmode = 0;
static struct BurnInputInfo aerofgtInputList[] = {
{"P1 Coin", BIT_DIGITAL, DrvButton + 0, "p1 coin"},
@ -1065,6 +1066,8 @@ static void aerofgtSndBankSwitch(UINT8 v)
if (v != nAerofgtZ80Bank) {
UINT8* nStartAddress = RomZ80 + 0x10000 + (v << 15);
if (spinlbrkmode)
nStartAddress = RomZ80 + 0x08000 + (v << 15);
ZetMapArea(0x8000, 0xFFFF, 0, nStartAddress);
ZetMapArea(0x8000, 0xFFFF, 2, nStartAddress);
nAerofgtZ80Bank = v;
@ -1778,6 +1781,8 @@ static INT32 spinlbrkInit()
SekClose();
}
// different banking start address for Spinal Breakers
spinlbrkmode = 1;
turbofrc_sound_init();
// Fix sprite glitches...
@ -1860,6 +1865,7 @@ static INT32 DrvExit()
SekExit();
BurnFree(Mem);
spinlbrkmode = 0;
return 0;
}