applied GB Clear Vram, MBC 1 Mapper and Sound Volume fix for beetlejuice patches provided by Chrono

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@747 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
squall-leonhart 2008-09-25 21:20:37 +00:00
parent c6f509e10e
commit d6c82a578e
3 changed files with 19 additions and 4 deletions

View File

@ -2218,7 +2218,11 @@ void gbReset()
gbMemory[temp] = 0xff;
}
// GB bios set this memory area to 0
// Fixes Pitman (J) title screen
if (gbHardware & 0x1) {
memset(&gbMemory[0x8000], 0x0, 0x2000);
}
// clean LineBuffer
if (gbLineBuffer != NULL)

View File

@ -252,9 +252,14 @@ void memoryUpdateMapMBC1()
gbMemoryMap[0x07] = &gbRom[tmpAddress + 0x3000];
}
if((gbRamSize) && (gbDataMBC1.mapperMemoryModel == 1)){
gbMemoryMap[0x0a] = &gbRam[gbDataMBC1.mapperRAMAddress];
gbMemoryMap[0x0b] = &gbRam[gbDataMBC1.mapperRAMAddress + 0x1000];
if(gbRamSize) {
if(gbDataMBC1.mapperMemoryModel == 1) {
gbMemoryMap[0x0a] = &gbRam[gbDataMBC1.mapperRAMAddress];
gbMemoryMap[0x0b] = &gbRam[gbDataMBC1.mapperRAMAddress + 0x1000];
} else {
gbMemoryMap[0x0a] = &gbRam[0];
gbMemoryMap[0x0b] = &gbRam[0x1000];
}
}
}

View File

@ -237,6 +237,12 @@ void gbSoundReset()
else
gbSoundEvent(0xff26, 0xf1);
/* workaround for game Beetlejuice */
if (gbHardware & 0x1) {
gbSoundEvent(0xff24, 0x77);
gbSoundEvent(0xff25, 0xf3);
}
int addr = 0xff30;
while(addr < 0xff40) {