diff --git a/r5dev/pluginsdk/pluginsdk.cpp b/r5dev/pluginsdk/pluginsdk.cpp index ac5cc5c9..760c836d 100644 --- a/r5dev/pluginsdk/pluginsdk.cpp +++ b/r5dev/pluginsdk/pluginsdk.cpp @@ -21,7 +21,7 @@ CPluginSDK::CPluginSDK(const char* pszSelfModule) : m_FactoryInstance(nullptr), { m_SelfModule = CModule(pszSelfModule); m_GameModule = CModule("r5apex.exe"); - m_SDKModule = CModule("gamesdk.dll"); + m_SDKModule = CModule("gamesdk.dll"); // THIS NEEDS TO BE CHANGED FOR DEDI/CLIENT SDK SUPPORT. AT BEST DO THIS VIA PluginInstance_OnLoad. } //--------------------------------------------------------------------------------- diff --git a/r5dev/pluginsystem/pluginsystem.cpp b/r5dev/pluginsystem/pluginsystem.cpp index 19232bd7..ef90a1b7 100644 --- a/r5dev/pluginsystem/pluginsystem.cpp +++ b/r5dev/pluginsystem/pluginsystem.cpp @@ -53,6 +53,7 @@ bool CPluginSystem::LoadPluginInstance(PluginInstance_t& pluginInst) CModule pluginModule = CModule(pluginInst.m_svPluginName); + // Pass selfModule here on load function, we have to do this because local listen/dedi/client dll's are called different, refer to a comment on the pluginsdk. auto onLoadFn = pluginModule.GetExportedFunction("PluginInstance_OnLoad").RCast(); Assert(onLoadFn);