diff --git a/VCMP-SDK-Sample-Module/Core.cpp b/VCMP-SDK-Sample-Module/Core.cpp index 134d140..6fbd6c5 100644 --- a/VCMP-SDK-Sample-Module/Core.cpp +++ b/VCMP-SDK-Sample-Module/Core.cpp @@ -190,6 +190,8 @@ extern "C" EXPORT unsigned int VcmpPluginInit(PluginFuncs* pluginFuncs, PluginCa signal_onServerPerformanceReport(entryCount, descriptions, times); }; + EventHandler _event_handler; + return 1; } diff --git a/VCMP-SDK-Sample-Module/include/events/hooks.h b/VCMP-SDK-Sample-Module/include/events/hooks.h index f2490e5..7b708b8 100644 --- a/VCMP-SDK-Sample-Module/include/events/hooks.h +++ b/VCMP-SDK-Sample-Module/include/events/hooks.h @@ -10,7 +10,7 @@ #include "events/handlers_Sphere.h" #include "events/handlers_Checkpoint.h" -class EventHandler { +struct EventHandler { EventHandler() { bindEvents_Server(); bindEvents_Client();