From d5c8ecc7a45798e8ba6674e6323244e2f2c291fb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 14:27:52 +0300 Subject: what should be done to each C++ plugin (missing Unload functions might not be overridden) --- plugins/AVS/src/main.cpp | 4 ++-- plugins/AVS/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index e3d0fcf825..6fa9c01b15 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -356,7 +356,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { LoadACC(); @@ -384,7 +384,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { UninitPolls(); UnloadCache(); diff --git a/plugins/AVS/src/stdafx.h b/plugins/AVS/src/stdafx.h index c2616efc6e..f9911c6f6a 100644 --- a/plugins/AVS/src/stdafx.h +++ b/plugins/AVS/src/stdafx.h @@ -60,6 +60,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; /* most free()'s are invalid when the code is executed from a dll, so this changes -- cgit v1.2.3