Skip to content

Commit

Permalink
Make sure to init static variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Mar 4, 2024
1 parent 5fb9988 commit b8e96e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/function_patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8e96e8

Please sign in to comment.