From 6e72fb4d1ce087965afb024ccaa747d9146af091 Mon Sep 17 00:00:00 2001 From: gameblabla Date: Wed, 10 Nov 2021 20:05:09 +0100 Subject: [PATCH 1/1] Remove CdlGetLocP hack This was added back in 2013 or so in PCSX Rearmed and according to some tests against Tomb Raider 1 (which is affected by the GetLocP code), it works properly without this hack. So let's just remove it as we are now doing it properly. Notaz also forgot the reason why he introduced the hack in the first place, see : https://github.com/notaz/pcsx_rearmed/pull/235#issuecomment-955026232 --- libpcsxcore/cdrom.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index c09ccb10..76fd5456 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -812,9 +812,6 @@ void cdrInterrupt() { case CdlGetlocP: SetResultSize(8); memcpy(&cdr.Result, &cdr.subq, 8); - - if (!cdr.Play && !cdr.Reading) - cdr.Result[1] = 0; // HACK? break; case CdlReadT: // SetSession? -- 2.39.2