mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Comment to plugin system for a bug that needs fixing.
This commit is contained in:
parent
c79f98e4f8
commit
61383efb50
@ -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.
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user