summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/stdafx.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-12-09 17:08:24 +0000
committerRobert Pösel <robyer@seznam.cz>2014-12-09 17:08:24 +0000
commit8a78d1312d2a7d25aabc4b2fd082891e4714dbb7 (patch)
treed0eae08094d99b1830ba66d581540f5ea10598dc /protocols/Steam/src/stdafx.cpp
parent89ce406fb710ff91a3f80d5f1ee674c09a1f7603 (diff)
Steam: Show xstatus as extra icon in clist (step 3)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/stdafx.cpp')
-rw-r--r--protocols/Steam/src/stdafx.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Steam/src/stdafx.cpp b/protocols/Steam/src/stdafx.cpp
index d51a866ca3..7c6793d8cb 100644
--- a/protocols/Steam/src/stdafx.cpp
+++ b/protocols/Steam/src/stdafx.cpp
@@ -3,6 +3,8 @@
int hLangpack;
HINSTANCE g_hInstance;
+HANDLE hExtraXStatus;
+
PLUGININFOEX pluginInfo =
{
sizeof(PLUGININFOEX),
@@ -43,6 +45,13 @@ extern "C" int __declspec(dllexport) Load(void)
pd.fnUninit = (pfnUninitProto)CSteamProto::UninitProtoInstance;
CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
+ char iconName[100];
+ mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, "gaming");
+
+ // extra statuses
+ HookEvent(ME_SKIN2_ICONSCHANGED, OnReloadIcons);
+ hExtraXStatus = ExtraIcon_Register("steam_game", LPGEN("Steam game"), iconName);
+
CSteamProto::InitMenus();
return 0;