diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-08 17:54:46 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-08 17:54:46 +0000 |
commit | 683ca5965e69d1780d957ab6f59b704c612852fa (patch) | |
tree | d1f089a434184304ef952ecae80d379431a0846a /protocols/Steam/src/steam_events.cpp | |
parent | 78dc54f9e392b45492a2b726d6268c41f594eb41 (diff) |
Steam:
- added options
- removed OpenSSL dependencies
- cleaned project files
git-svn-id: http://svn.miranda-ng.org/main/trunk@8893 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_events.cpp')
-rw-r--r-- | protocols/Steam/src/steam_events.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 0099f43456..27e63951b7 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -2,6 +2,8 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM)
{
+ HookEventObj(ME_OPT_INITIALISE, OnOptionsInit, this);
+
TCHAR name[128];
mir_sntprintf(name, SIZEOF(name), TranslateT("%s connection"), m_tszUserName);
@@ -24,7 +26,7 @@ int CSteamProto::OnPreShutdown(WPARAM, LPARAM) return 0;
}
-INT_PTR __cdecl CSteamProto::OnAccountManagerInit(WPARAM wParam, LPARAM lParam)
+INT_PTR CSteamProto::OnAccountManagerInit(WPARAM wParam, LPARAM lParam)
{
return (int)CreateDialogParam(
g_hInstance,
@@ -34,14 +36,16 @@ INT_PTR __cdecl CSteamProto::OnAccountManagerInit(WPARAM wParam, LPARAM lParam) (LPARAM)this);
}
-int __cdecl CSteamProto::OnOptionsInit(WPARAM wParam, LPARAM lParam)
+int CSteamProto::OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam)
{
- char *title = mir_t2a(this->m_tszUserName);
+ CSteamProto *instance = (CSteamProto*)obj;
+
+ char *title = mir_t2a(instance->m_tszUserName);
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = g_hInstance;
odp.pszTitle = title;
- odp.dwInitParam = LPARAM(this);
+ odp.dwInitParam = LPARAM(obj);
odp.flags = ODPF_BOLDGROUPS;
odp.pszGroup = LPGEN("Network");
|