From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/YAMN/src/main.cpp | 4 ++-- plugins/YAMN/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/YAMN') diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp index 4cd7b8dd43..739ba30a83 100644 --- a/plugins/YAMN/src/main.cpp +++ b/plugins/YAMN/src/main.cpp @@ -232,7 +232,7 @@ static void LoadPlugins() } } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { YAMN_STATUS = ID_STATUS_OFFLINE; @@ -330,7 +330,7 @@ static void UnloadPlugins() hDllPlugins = nullptr; } -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { #ifdef _DEBUG UnInitDebug(); diff --git a/plugins/YAMN/src/stdafx.h b/plugins/YAMN/src/stdafx.h index 485e8bdf76..f28c1aaa21 100644 --- a/plugins/YAMN/src/stdafx.h +++ b/plugins/YAMN/src/stdafx.h @@ -45,6 +45,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; // From services.cpp -- cgit v1.2.3