Comment to plugin system for a bug that needs fixing.

This commit is contained in:
Marvin D 2022-12-25 14:49:24 +01:00
parent c79f98e4f8
commit 61383efb50
2 changed files with 2 additions and 1 deletions

View File

@ -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.
}
//---------------------------------------------------------------------------------

View File

@ -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<PluginInstance_t::OnLoad>();
Assert(onLoadFn);