Fix CdlGetTD according to Mednafen's implementation. (#204)
authorgameblabla <gameblabla@users.noreply.github.com>
Thu, 26 Aug 2021 18:04:19 +0000 (18:04 +0000)
committerGitHub <noreply@github.com>
Thu, 26 Aug 2021 18:04:19 +0000 (21:04 +0300)
libpcsxcore/cdrom.c

index 6980101..5a596ad 100644 (file)
@@ -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;