From 7deea6cec5d2173f66d4c2dd75ca0b633b887bc7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 00:17:30 +0300 Subject: sounds packed into CMPlugin (reduces usage of hLangpack) --- src/core/stdfile/src/file.cpp | 8 ++++---- src/core/stdmsg/src/msgs.cpp | 14 +++++++------- src/core/stduseronline/src/useronline.cpp | 3 ++- 3 files changed, 13 insertions(+), 12 deletions(-) (limited to 'src/core') diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp index 9dda11aa92..4b39aff9b0 100644 --- a/src/core/stdfile/src/file.cpp +++ b/src/core/stdfile/src/file.cpp @@ -442,9 +442,9 @@ int LoadSendRecvFileModule(void) CreateServiceFunction("SRFile/OpenContRecDir", openContRecDir); CreateServiceFunction("SRFile/OpenRecDir", openRecDir); - Skin_AddSound("RecvFile", LPGENW("File"), LPGENW("Incoming")); - Skin_AddSound("FileDone", LPGENW("File"), LPGENW("Complete")); - Skin_AddSound("FileFailed", LPGENW("File"), LPGENW("Error")); - Skin_AddSound("FileDenied", LPGENW("File"), LPGENW("Denied")); + g_plugin.addSound("RecvFile", LPGENW("File"), LPGENW("Incoming")); + g_plugin.addSound("FileDone", LPGENW("File"), LPGENW("Complete")); + g_plugin.addSound("FileFailed", LPGENW("File"), LPGENW("Error")); + g_plugin.addSound("FileDenied", LPGENW("File"), LPGENW("Denied")); return 0; } diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 0b982e5892..36ef8201bb 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -538,13 +538,13 @@ int LoadSendRecvMessageModule(void) CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W); CreateServiceFunction(MS_MSG_READMESSAGE, ReadMessageCommand); - Skin_AddSound("RecvMsgActive", LPGENW("Instant messages"), LPGENW("Incoming (focused window)")); - Skin_AddSound("RecvMsgInactive", LPGENW("Instant messages"), LPGENW("Incoming (unfocused window)")); - Skin_AddSound("AlertMsg", LPGENW("Instant messages"), LPGENW("Incoming (new session)")); - Skin_AddSound("SendMsg", LPGENW("Instant messages"), LPGENW("Outgoing")); - Skin_AddSound("SendError", LPGENW("Instant messages"), LPGENW("Message send error")); - Skin_AddSound("TNStart", LPGENW("Instant messages"), LPGENW("Contact started typing")); - Skin_AddSound("TNStop", LPGENW("Instant messages"), LPGENW("Contact stopped typing")); + g_plugin.addSound("RecvMsgActive", LPGENW("Instant messages"), LPGENW("Incoming (focused window)")); + g_plugin.addSound("RecvMsgInactive", LPGENW("Instant messages"), LPGENW("Incoming (unfocused window)")); + g_plugin.addSound("AlertMsg", LPGENW("Instant messages"), LPGENW("Incoming (new session)")); + g_plugin.addSound("SendMsg", LPGENW("Instant messages"), LPGENW("Outgoing")); + g_plugin.addSound("SendError", LPGENW("Instant messages"), LPGENW("Message send error")); + g_plugin.addSound("TNStart", LPGENW("Instant messages"), LPGENW("Contact started typing")); + g_plugin.addSound("TNStop", LPGENW("Instant messages"), LPGENW("Contact stopped typing")); InitStatusIcons(); return 0; diff --git a/src/core/stduseronline/src/useronline.cpp b/src/core/stduseronline/src/useronline.cpp index 54063cb44c..163b705835 100644 --- a/src/core/stduseronline/src/useronline.cpp +++ b/src/core/stduseronline/src/useronline.cpp @@ -112,6 +112,7 @@ int LoadUserOnlineModule(void) HookEvent(ME_PROTO_ACK, UserOnlineAck); HookEvent(ME_SYSTEM_MODULESLOADED, UserOnlineModulesLoaded); HookEvent(ME_PROTO_ACCLISTCHANGED, UserOnlineAccountsChanged); - Skin_AddSound(MODULENAME, LPGENW("Alerts"), LPGENW("Online")); + + g_plugin.addSound(MODULENAME, LPGENW("Alerts"), LPGENW("Online")); return 0; } -- cgit v1.2.3