From 8f193eb68fa38f28c7f33d9316ee965cbd77fcda Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Tue, 20 Mar 2018 10:08:13 -0400 Subject: [PATCH] PCE: Increase read delay to fix Mugen Senshi Valis fixes #554 --- BizHawk.Emulation.Cores/Consoles/PC Engine/ScsiCDBus.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/PC Engine/ScsiCDBus.cs b/BizHawk.Emulation.Cores/Consoles/PC Engine/ScsiCDBus.cs index afa8a8a790..bf2d23f311 100644 --- a/BizHawk.Emulation.Cores/Consoles/PC Engine/ScsiCDBus.cs +++ b/BizHawk.Emulation.Cores/Consoles/PC Engine/ScsiCDBus.cs @@ -409,7 +409,10 @@ namespace BizHawk.Emulation.Cores.PCEngine if (CommandBuffer[4] == 0) SectorsLeftToRead = 256; - DataReadWaitTimer = pce.Cpu.TotalExecutedCycles + 5000; // figure out proper read delay later + // figure out proper read delay later + // 10000 fixes Mugen Senshi Valis, which runs code in a timed loop, expecting a certain number of VBlanks + // to happen before reading is complete + DataReadWaitTimer = pce.Cpu.TotalExecutedCycles + 10000; pce.CDAudio.Stop(); }