2022-08-21 00:59:55 +02:00
|
|
|
//=============================================================================//
|
|
|
|
//
|
|
|
|
// Purpose: plugin loading, unloading
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#include "core/stdafx.h"
|
|
|
|
#include "pluginsdk.h"
|
|
|
|
|
2023-05-08 19:28:16 +01:00
|
|
|
extern "C" __declspec(dllexport) bool PluginInstance_OnLoad(const char* pszSelfModule, const char* pszSDKModule)
|
2022-08-21 00:59:55 +02:00
|
|
|
{
|
|
|
|
g_pPluginSDK = new CPluginSDK(pszSelfModule);
|
2023-05-08 19:28:16 +01:00
|
|
|
g_pPluginSDK->SetSDKModule(CModule(pszSDKModule));
|
|
|
|
|
2022-08-21 00:59:55 +02:00
|
|
|
return g_pPluginSDK->InitSDK();
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" __declspec(dllexport) void PluginInstance_OnUnload()
|
|
|
|
{
|
|
|
|
delete g_pPluginSDK;
|
|
|
|
}
|