diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-28 14:27:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-28 14:27:52 +0300 |
commit | d5c8ecc7a45798e8ba6674e6323244e2f2c291fb (patch) | |
tree | ad15dd993c5c1463b3925993b36548d99a4d7133 /plugins/AVS/src | |
parent | 0d2a573701b57fed6d7a14b88740fe36441d5cbf (diff) |
what should be done to each C++ plugin (missing Unload functions might not be overridden)
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r-- | plugins/AVS/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/AVS/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
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>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
/* most free()'s are invalid when the code is executed from a dll, so this changes
|