From cfeb7cab2ce1083d54e46a102ab02f680615064d Mon Sep 17 00:00:00 2001 From: gameblabla Date: Thu, 26 Aug 2021 18:04:19 +0000 Subject: [PATCH 1/1] Fix CdlGetTD according to Mednafen's implementation. (#204) --- libpcsxcore/cdrom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 69801011..5a596adc 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -815,7 +815,9 @@ void cdrInterrupt() { cdr.Result[0] = cdr.StatP; cdr.Result[1] = itob(cdr.ResultTD[2]); cdr.Result[2] = itob(cdr.ResultTD[1]); - cdr.Result[3] = itob(cdr.ResultTD[0]); + /* According to Nocash's documentation, the function doesn't care about ff. + * This can be seen also in Mednafen's implementation. */ + //cdr.Result[3] = itob(cdr.ResultTD[0]); } break; -- 2.39.5