cdrom: yet another timing hack
authornotaz <notasas@gmail.com>
Mon, 23 Dec 2024 12:21:47 +0000 (14:21 +0200)
committernotaz <notasas@gmail.com>
Mon, 23 Dec 2024 12:21:47 +0000 (14:21 +0200)
libretro/pcsx_rearmed#858

libpcsxcore/cdrom.c

index e6ea22b..5c7e764 100644 (file)
@@ -1322,6 +1322,8 @@ static void cdrReadInterruptSetResult(unsigned char result)
                        cdr.SetSectorPlay[0], cdr.SetSectorPlay[1], cdr.SetSectorPlay[2],
                        cdr.CmdInProgress, cdr.IrqStat);
                cdr.Irq1Pending = result;
+               // F1 2000 timing hack :(
+               psxRegs.intCycle[PSXINT_CDREAD].sCycle += cdReadTime / 10;
                return;
        }
        SetResultSize(1);