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 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/ZeroNotification/src/main.cpp') 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; -} -- cgit v1.2.3