From 220a177a4a3b48e280f65f341db8dfeb9d4625da Mon Sep 17 00:00:00 2001 From: BroGamer <64546358+BroGamer4256@users.noreply.github.com> Date: Sun, 16 Oct 2022 11:54:00 +1300 Subject: [PATCH] Fix card 2 --- src/dllmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dllmain.c b/src/dllmain.c index 570cc1a..c0ff350 100644 --- a/src/dllmain.c +++ b/src/dllmain.c @@ -138,8 +138,10 @@ u16 __fastcall bnusio_GetCoin (i32 a1) { } for (int i = 0; plugins[i] != 0; i++) { FARPROC insertEvent = GetProcAddress (plugins[i], "Card2Insert"); - if (insertEvent) ((event *)insertEvent) (); - hasInserted = true; + if (insertEvent) { + ((event *)insertEvent) (); + hasInserted = true; + } } if (!hasInserted) { memcpy (cardData + 0x2C, chipId2, 33);