diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-20 00:17:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-20 00:17:30 +0300 |
commit | 7deea6cec5d2173f66d4c2dd75ca0b633b887bc7 (patch) | |
tree | 8e95a2e5a707ef578c2f070b997156fcda6f088c /plugins/ConnectionNotify/src | |
parent | 15051a110d2575c2baa9a3b358977000c876abd9 (diff) |
sounds packed into CMPlugin (reduces usage of hLangpack)
Diffstat (limited to 'plugins/ConnectionNotify/src')
-rw-r--r-- | plugins/ConnectionNotify/src/ConnectionNotify.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ConnectionNotify/src/ConnectionNotify.cpp b/plugins/ConnectionNotify/src/ConnectionNotify.cpp index 69892a4ef4..9f997ea8ff 100644 --- a/plugins/ConnectionNotify/src/ConnectionNotify.cpp +++ b/plugins/ConnectionNotify/src/ConnectionNotify.cpp @@ -866,11 +866,14 @@ extern "C" int __declspec(dllexport) Load(void) CreateProtoServiceFunction(PLUGINNAME, PS_SETSTATUS, SetStatus);
CreateProtoServiceFunction(PLUGINNAME, PS_GETSTATUS, GetStatus);
- Skin_AddSound(PLUGINNAME_NEWSOUND, PLUGINNAMEW, LPGENW("New Connection Notification"));
+ g_plugin.addSound(PLUGINNAME_NEWSOUND, PLUGINNAMEW, LPGENW("New Connection Notification"));
+
hOptInit = HookEvent(ME_OPT_INITIALISE, ConnectionNotifyOptInit);//register service to hook option call
assert(hOptInit);
+
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, modulesloaded);//hook event that all plugins are loaded
assert(hHookModulesLoaded);
+
hHookPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, preshutdown);
return 0;
}
|