mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 16:19:54 +00:00
17 lines
467 B
C++
17 lines
467 B
C++
#include "plugin.hpp"
|
|
#include "MyGUI_PluginManager.h"
|
|
|
|
MyGUIPlugin::ResourcePlugin* plugin_item = nullptr;
|
|
|
|
extern "C" MYGUI_EXPORT_DLL void dllStartPlugin(void)
|
|
{
|
|
plugin_item = new MyGUIPlugin::ResourcePlugin();
|
|
MyGUI::PluginManager::getInstance().installPlugin(plugin_item);
|
|
}
|
|
|
|
extern "C" MYGUI_EXPORT_DLL void dllStopPlugin(void)
|
|
{
|
|
MyGUI::PluginManager::getInstance().uninstallPlugin(plugin_item);
|
|
delete plugin_item;
|
|
plugin_item = nullptr;
|
|
}
|