notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db412a
)
psxbios: unbreak input
author
notaz
<notasas@gmail.com>
Wed, 13 Sep 2023 20:58:27 +0000
(23:58 +0300)
committer
notaz
<notasas@gmail.com>
Wed, 13 Sep 2023 21:41:27 +0000
(
00:41
+0300)
libpcsxcore/psxbios.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/psxbios.c
b/libpcsxcore/psxbios.c
index
88f994f
..
996a242
100644
(file)
--- 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); \