Hotfix for Magical Drop (Japan)'s "tokoton mode"

This commit is contained in:
byuu 2019-10-01 06:51:17 +09:00
parent 3701236ca0
commit 4efee7e9f1
1 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@ auto DSP::power(bool reset) -> void {
spc_dsp.soft_reset();
spc_dsp.set_output(samplebuffer, 8192);
}
if(configuration.hacks.hotfixes) {
//Magical Drop (Japan) does not initialize the DSP registers at startup.
//Tokoton mode will hang forever in some instances even on real hardware.
if(cartridge.headerTitle() == "MAGICAL DROP") {
for(uint address : range(0x80)) spc_dsp.write(address, 0xff);
}
}
}
auto DSP::mute() -> bool {