From: notaz <notasas@gmail.com>
Date: Tue, 25 Feb 2025 23:45:02 +0000 (+0200)
Subject: cdrom: adjust the t'ai hack
X-Git-Tag: r25~1
X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2101d5bd5f129cc9682f8df9bf3ecd752418a33;p=pcsx_rearmed.git

cdrom: adjust the t'ai hack
---

diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c
index 926e7eca..e52f74b8 100644
--- a/libpcsxcore/cdrom.c
+++ b/libpcsxcore/cdrom.c
@@ -624,11 +624,7 @@ static u32 cdrAlignTimingHack(u32 cycles)
 	 * Note: always enforcing this breaks other games like Crash PAL version
 	 * (inputs get dropped because bios handler doesn't see interrupts).
 	 */
-	u32 vint_rel;
-	if (psxRegs.cycle - rcnts[3].cycleStart > 250000)
-		return cycles;
-	vint_rel = rcnts[3].cycleStart + 63000 - psxRegs.cycle;
-	vint_rel += PSXCLK / 60;
+	u32 vint_rel = rcnts[3].cycleStart + 63000 - psxRegs.cycle;
 	while ((s32)(vint_rel - cycles) < 0)
 		vint_rel += PSXCLK / 60;
 	return vint_rel;