mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
21 lines
603 B
C++
21 lines
603 B
C++
//=============================================================================//
|
|
//
|
|
// Purpose: plugin loading, unloading
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
//=============================================================================//
|
|
|
|
#include "core/stdafx.h"
|
|
#include "pluginsdk.h"
|
|
|
|
extern "C" __declspec(dllexport) bool PluginInstance_OnLoad(const char* pszSelfModule)
|
|
{
|
|
g_pPluginSDK = new CPluginSDK(pszSelfModule);
|
|
return g_pPluginSDK->InitSDK();
|
|
}
|
|
|
|
extern "C" __declspec(dllexport) void PluginInstance_OnUnload()
|
|
{
|
|
delete g_pPluginSDK;
|
|
} |