Fix event passing

This commit is contained in:
Ilia Demianenko 2023-07-15 15:55:50 -07:00
parent 5fa9c3c34c
commit 6c91caddc0
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
#include"orca.h"
mp_event _OrcaRawEvent;
ORCA_EXPORT mp_event *_OrcaRawEventPtr = &_OrcaRawEvent;
ORCA_EXPORT mp_event _OrcaRawEvent;

View File

@ -437,7 +437,7 @@ void* orca_runloop(void* user)
}
//NOTE: get location of the raw event slot
IM3Global rawEventGlobal = m3_FindGlobal(app->runtime.m3Module, "_OrcaRawEventPtr");
IM3Global rawEventGlobal = m3_FindGlobal(app->runtime.m3Module, "_OrcaRawEvent");
app->runtime.rawEventOffset = (u32)rawEventGlobal->intValue;
//NOTE: preopen the app local root dir