diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-10-21 10:51:25 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-10-21 10:51:25 +0200 |
commit | 1683f0f4b1d275d19052aa06626efd5b575ec6bb (patch) | |
tree | 95fe0a79e0187c3b98f71e40498fe7ef1260fcd2 /src/init.cpp | |
parent | 19ff9b13719eac8ad9b770bbe655925cde0030d0 (diff) | |
download | SouthRPC-1683f0f4b1d275d19052aa06626efd5b575ec6bb.tar.gz SouthRPC-1683f0f4b1d275d19052aa06626efd5b575ec6bb.zip |
Port to Plugins v3
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(); } } |