2014-09-11 21:12:38 +00:00
|
|
|
#include "plugin.hpp"
|
|
|
|
#include "MyGUI_PluginManager.h"
|
|
|
|
|
2014-09-12 02:27:23 +00:00
|
|
|
MyGUIPlugin::ResourcePlugin* plugin_item = nullptr;
|
2014-09-11 21:12:38 +00:00
|
|
|
|
|
|
|
extern "C" MYGUI_EXPORT_DLL void dllStartPlugin(void)
|
|
|
|
{
|
2014-09-12 02:27:23 +00:00
|
|
|
plugin_item = new MyGUIPlugin::ResourcePlugin();
|
2014-09-11 21:12:38 +00:00
|
|
|
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;
|
|
|
|
}
|