From 8bba5b17ebbbf9196866cc146ca272f7ba2dbff3 Mon Sep 17 00:00:00 2001 From: BroGamer <64546358+BroGamer4256@users.noreply.github.com> Date: Sun, 18 Sep 2022 11:07:54 +1200 Subject: [PATCH] Add update event --- src/dllmain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dllmain.c b/src/dllmain.c index 9e13a9a..802b42f 100644 --- a/src/dllmain.c +++ b/src/dllmain.c @@ -123,6 +123,10 @@ u16 __fastcall bnusio_GetCoin (i32 a1) { touchCallback (0, 0, cardData, touchData); } } + for (int i = 0; plugins[i] != 0; i++) { + FARPROC updateEvent = GetProcAddress (plugins[i], "Update"); + if (updateEvent) ((event *)updateEvent) (); + } if (attachCallback) attachCallback (0, 0, attachData); return coin_count; }