applied GB Clear Vram, MBC 1 Mapper and Sound Volume fix for beetlejuice patches provided by Chrono
This commit is contained in:
parent
a794890f86
commit
1892a3ebb6
|
@ -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)
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue