From 9250a0caadc93ec7a92b99deea151ab7a1c403da Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 28 May 2018 20:49:19 +0200 Subject: Notification plugins - convert to Load/Unload methods of CMPlugin --- plugins/ZeroNotification/src/main.cpp | 9 +-------- plugins/ZeroNotification/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/ZeroNotification/src') diff --git a/plugins/ZeroNotification/src/main.cpp b/plugins/ZeroNotification/src/main.cpp index aebcc52b5a..f0d4808dd2 100644 --- a/plugins/ZeroNotification/src/main.cpp +++ b/plugins/ZeroNotification/src/main.cpp @@ -83,7 +83,7 @@ static INT_PTR NoSoundMenuCommand(WPARAM, LPARAM) return 0; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { if (!db_get_b(NULL, MODULENAME, "HideMenu", 1)) { CreateServiceFunction(MODULENAME "/MenuCommand", NoSoundMenuCommand); @@ -104,10 +104,3 @@ extern "C" __declspec(dllexport) int Load(void) return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) -{ - return 0; -} diff --git a/plugins/ZeroNotification/src/stdafx.h b/plugins/ZeroNotification/src/stdafx.h index f646c02676..9f10d44afb 100644 --- a/plugins/ZeroNotification/src/stdafx.h +++ b/plugins/ZeroNotification/src/stdafx.h @@ -18,6 +18,8 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; #define DEFAULT_NOSOUND 0x00000000 -- cgit v1.2.3