psxbios: Should fix input issues in some games.
authorgameblabla <gameblabla@openmailbox.org>
Thu, 18 Jul 2019 00:10:43 +0000 (02:10 +0200)
committergameblabla <gameblabla@openmailbox.org>
Thu, 18 Jul 2019 00:10:43 +0000 (02:10 +0200)
Someone reported that this fixed Negcon controls in Ridge Racer Revolution
and Grand Tour Racing.
I doubt this will suffer from regressions ?

libpcsxcore/psxbios.c

index 5bff23e..83e5518 100644 (file)
@@ -1772,9 +1772,10 @@ void psxBios_StopPAD() { // 14
 #ifdef PSXBIOS_LOG
        PSXBIOS_LOG("psxBios_%s\n", biosB0n[0x14]);
 #endif
-
+       if (pad_buf == 0){
        pad_buf1 = NULL;
        pad_buf2 = NULL;
+       }
        pc0 = ra;
 }