Fix CdlGetTD according to Mednafen's implementation.
authorgameblabla <gameblabla@protonmail.com>
Sat, 25 Sep 2021 13:32:27 +0000 (15:32 +0200)
committergameblabla <gameblabla@protonmail.com>
Sat, 25 Sep 2021 13:32:27 +0000 (15:32 +0200)
libpcsxcore/cdrom.c

index eaae938..edd6c04 100644 (file)
@@ -820,7 +820,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;