summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/stdafx.cpp
diff options
context:
space:
mode:
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;