From 8aecce153fe3f821a078cb9db00eac5c1540bb03 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 13 Sep 2023 23:58:27 +0300 Subject: [PATCH] psxbios: unbreak input --- libpcsxcore/psxbios.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 88f994f8..996a242b 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -3775,8 +3775,10 @@ void psxBiosCnfLoaded(u32 tcb_cnt, u32 evcb_cnt, u32 stack) { #define psxBios_PADpoll(pad) { \ int i, more_data = 0; \ - pad_buf##pad[0] = PAD##pad##_startPoll(pad); \ + PAD##pad##_startPoll(pad); \ pad_buf##pad[1] = PAD##pad##_poll(0x42, &more_data); \ + pad_buf##pad[0] = more_data ? 0 : 0xff; \ + PAD##pad##_poll(0, &more_data); \ i = 2; \ while (more_data) { \ pad_buf##pad[i++] = PAD##pad##_poll(0, &more_data); \ -- 2.39.5