From c99c9fa0fd623e184167be074e74664683aa0e2e Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Thu, 14 Jul 2022 07:47:33 -0600 Subject: [PATCH] update core --- mupen64plus-core/src/device/pif/pif.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mupen64plus-core/src/device/pif/pif.c b/mupen64plus-core/src/device/pif/pif.c index 01ddfd2..720ef07 100644 --- a/mupen64plus-core/src/device/pif/pif.c +++ b/mupen64plus-core/src/device/pif/pif.c @@ -370,13 +370,8 @@ void process_pif_ram(struct pif* pif) static void update_pif_counter(struct pif* pif) { - uint32_t input_updated = 0; - for (int i = 0; i < 4; ++i) - { - if (pif->channels[i].tx && (pif->channels[i].tx_buf[0] == JCMD_CONTROLLER_READ)) - input_updated = 1; - } - if (input_updated) + /* check if controller 0 was polled for input */ + if (pif->channels[0].tx && (pif->channels[0].tx_buf[0] == JCMD_CONTROLLER_READ)) ++pif->update_counter; }