diff options
Diffstat (limited to 'plugins/Console/src')
-rw-r--r-- | plugins/Console/src/init.cpp | 4 | ||||
-rw-r--r-- | plugins/Console/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Console/src/init.cpp b/plugins/Console/src/init.cpp index 4e30e0a698..088932dc74 100644 --- a/plugins/Console/src/init.cpp +++ b/plugins/Console/src/init.cpp @@ -62,7 +62,7 @@ CMPlugin::CMPlugin() : /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" __declspec(dllexport) int Load(void)
+int CMPlugin::Load()
{
g_plugin.registerIcon("Console", iconList);
@@ -71,7 +71,7 @@ extern "C" __declspec(dllexport) int Load(void) return 0;
}
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
ShutdownConsole();
return 0;
diff --git a/plugins/Console/src/stdafx.h b/plugins/Console/src/stdafx.h index 064c40b5ff..97755d566f 100644 --- a/plugins/Console/src/stdafx.h +++ b/plugins/Console/src/stdafx.h @@ -47,6 +47,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
void InitConsole();
|