diff options
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/init.cpp b/src/init.cpp index 7ecc84a..36aea76 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -24,20 +24,13 @@ void PLUGIN_DEINIT() } extern "C" __declspec(dllexport) -void PLUGIN_INFORM_DLL_LOAD(PluginLoadDLL dll, void* data) { +void PLUGIN_INFORM_DLL_LOAD(const char* dll, PluginEngineData* data, void* dllPtr) { assert(plugin); - switch (dll) { - case PluginLoadDLL::ENGINE: - plugin->LoadEngineData(data); - plugin->StartServer(); - case PluginLoadDLL::CLIENT: - break; - case PluginLoadDLL::SERVER: - break; - default: - spdlog::warn("PLUGIN_INFORM_DLL_LOAD called with unknown type {}", (int)dll); - break; + if (!strcmp(dll, "engine.dll")) + { + plugin->LoadEngineData(data, (HMODULE)dllPtr); + plugin->StartServer(); } } |