From 5fb9988517e7efa6841cf0c45b3d67252c92f92d Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 4 Mar 2024 17:46:06 +0100 Subject: [PATCH] Fix button combo checking in games that use ButtonProcMode 1 --- src/function_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function_patcher.cpp b/src/function_patcher.cpp index d0d0b15..5ae099a 100644 --- a/src/function_patcher.cpp +++ b/src/function_patcher.cpp @@ -92,14 +92,14 @@ DECL_FUNCTION(int32_t, VPADRead, VPADChan chan, VPADStatus *buffer, uint32_t buf bool checkFullBuffer = VPADGetButtonProcMode(chan) == 1; if (gChangeAudioModeButtonComboEnabled && checkButtonComboVPAD(buffer, - checkFullBuffer ? buffer_size : 1, + checkFullBuffer ? result : 1, gSwapAudioButtonCombo, sSwapVoicesWasHoldForXFrameGamePad)) { SwapVoices(); } if (gSwapScreenButtonComboEnabled && checkButtonComboVPAD(buffer, - checkFullBuffer ? buffer_size : 1, + checkFullBuffer ? result : 1, gSwapScreenButtonCombo, sSwapScreenWasHoldForXFrameGamePad)) { SwapScreens();