From b8e96e8ae17eca862acfdeae0a04386ecc65d717 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 4 Mar 2024 17:46:30 +0100 Subject: [PATCH] Make sure to init static variables --- 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 5ae099a..9bdfd0e 100644 --- a/src/function_patcher.cpp +++ b/src/function_patcher.cpp @@ -80,8 +80,8 @@ void SwapScreens() { void SwapVoices(); extern "C" uint32_t VPADGetButtonProcMode(VPADChan chan); -static uint32_t sSwapScreenWasHoldForXFrameGamePad; -static uint32_t sSwapVoicesWasHoldForXFrameGamePad; +static uint32_t sSwapScreenWasHoldForXFrameGamePad = 0; +static uint32_t sSwapVoicesWasHoldForXFrameGamePad = 0; DECL_FUNCTION(int32_t, VPADRead, VPADChan chan, VPADStatus *buffer, uint32_t buffer_size, VPADReadError *error) { VPADReadError real_error; int32_t result = real_VPADRead(chan, buffer, buffer_size, &real_error);