diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 20:49:19 +0200 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 21:00:55 +0200 |
commit | 9250a0caadc93ec7a92b99deea151ab7a1c403da (patch) | |
tree | a891d1bd365e00e192bb703375613caa446ede33 /plugins/ZeroNotification | |
parent | 3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff) |
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/ZeroNotification')
-rw-r--r-- | plugins/ZeroNotification/src/main.cpp | 9 | ||||
-rw-r--r-- | plugins/ZeroNotification/src/stdafx.h | 2 |
2 files changed, 3 insertions, 8 deletions
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>
{
CMPlugin();
+
+ int Load() override;
};
#define DEFAULT_NOSOUND 0x00000000
|