From f4db128b96bf38991a3dea70ef568a1248665a2c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Apr 2015 19:46:58 +0000 Subject: unified project for Steam protocol git-svn-id: http://svn.miranda-ng.org/main/trunk@13316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- bin10/mir_dev.sln | 2 +- bin10/mir_full.sln | 2 +- bin10/mir_full_pro.sln | 2 +- bin10/mir_icons.sln | 2 +- bin12/mir_dev.sln | 2 +- bin12/mir_full.sln | 2 +- bin12/mir_icons.sln | 2 +- protocols/Steam/Steam.vcxproj | 33 ++++ protocols/Steam/Steam.vcxproj.filters | 4 + protocols/Steam/Steam_10.vcxproj | 248 ------------------------------- protocols/Steam/Steam_10.vcxproj.filters | 133 ----------------- protocols/Steam/Steam_12.vcxproj | 242 ------------------------------ protocols/Steam/Steam_12.vcxproj.filters | 133 ----------------- protocols/Steam/src/common.h | 58 -------- protocols/Steam/src/stdafx.cpp | 67 --------- protocols/Steam/src/stdafx.cxx | 67 +++++++++ protocols/Steam/src/stdafx.h | 58 ++++++++ protocols/Steam/src/steam_account.cpp | 2 +- protocols/Steam/src/steam_avatars.cpp | 2 +- protocols/Steam/src/steam_contacts.cpp | 2 +- protocols/Steam/src/steam_dialogs.cpp | 2 +- protocols/Steam/src/steam_events.cpp | 2 +- protocols/Steam/src/steam_instances.cpp | 2 +- protocols/Steam/src/steam_menus.cpp | 2 +- protocols/Steam/src/steam_messages.cpp | 2 +- protocols/Steam/src/steam_pooling.cpp | 2 +- protocols/Steam/src/steam_proto.cpp | 2 +- protocols/Steam/src/steam_queue.cpp | 2 +- protocols/Steam/src/steam_utils.cpp | 6 +- protocols/Steam/src/steam_xstatus.cpp | 6 +- 30 files changed, 187 insertions(+), 904 deletions(-) create mode 100644 protocols/Steam/Steam.vcxproj create mode 100644 protocols/Steam/Steam.vcxproj.filters delete mode 100644 protocols/Steam/Steam_10.vcxproj delete mode 100644 protocols/Steam/Steam_10.vcxproj.filters delete mode 100644 protocols/Steam/Steam_12.vcxproj delete mode 100644 protocols/Steam/Steam_12.vcxproj.filters delete mode 100644 protocols/Steam/src/common.h delete mode 100644 protocols/Steam/src/stdafx.cpp create mode 100644 protocols/Steam/src/stdafx.cxx create mode 100644 protocols/Steam/src/stdafx.h diff --git a/bin10/mir_dev.sln b/bin10/mir_dev.sln index 6e140bda32..cec3d393e8 100644 --- a/bin10/mir_dev.sln +++ b/bin10/mir_dev.sln @@ -413,7 +413,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WhatsApp", "..\protocols\Wh EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dummy", "..\protocols\Dummy\dummy.vcxproj", "{D3B4DDFF-D3A5-4452-AE9D-B43B3C97C821}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam_10.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ICQCorp", "..\protocols\ICQCorp\ICQCorp_10.vcxproj", "{AD0D0500-CE7D-417D-9C36-3620D56CA6D4}" EndProject diff --git a/bin10/mir_full.sln b/bin10/mir_full.sln index 2307b8826b..585f241f52 100644 --- a/bin10/mir_full.sln +++ b/bin10/mir_full.sln @@ -413,7 +413,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WhatsApp", "..\protocols\Wh EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dummy", "..\protocols\Dummy\dummy.vcxproj", "{D3B4DDFF-D3A5-4452-AE9D-B43B3C97C821}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam_10.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OpenSSL", "..\plugins\OpenSSL\OpenSSL_10.vcxproj", "{6C0C35E7-6522-403C-BB60-9805CDB9E52F}" EndProject diff --git a/bin10/mir_full_pro.sln b/bin10/mir_full_pro.sln index 8b3fb1677c..7fea508a4e 100644 --- a/bin10/mir_full_pro.sln +++ b/bin10/mir_full_pro.sln @@ -445,7 +445,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WhatsApp", "..\protocols\Wh EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dummy", "..\protocols\Dummy\dummy.vcxproj", "{D3B4DDFF-D3A5-4452-AE9D-B43B3C97C821}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam_10.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OpenSSL", "..\plugins\OpenSSL\OpenSSL_10.vcxproj", "{6C0C35E7-6522-403C-BB60-9805CDB9E52F}" EndProject diff --git a/bin10/mir_icons.sln b/bin10/mir_icons.sln index 1b6568c2ab..d628ba8af8 100644 --- a/bin10/mir_icons.sln +++ b/bin10/mir_icons.sln @@ -74,7 +74,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_WhatsApp", "..\protoc EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Dummy", "..\protocols\Dummy\proto_dummy\Proto_Dummy_10.vcxproj", "{018F801B-E80F-4E49-A640-E30BC445E74A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Steam", "..\protocols\Steam\proto_steam\Proto_Steam_10.vcxproj", "{523D76E4-1AB3-49B6-AFF0-E6057FAB9BC0}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Steam", "..\protocols\Steam\proto_steam\Proto_Steam.vcxproj", "{523D76E4-1AB3-49B6-AFF0-E6057FAB9BC0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/bin12/mir_dev.sln b/bin12/mir_dev.sln index 5ac0535494..5f8fc218dc 100644 --- a/bin12/mir_dev.sln +++ b/bin12/mir_dev.sln @@ -415,7 +415,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WhatsApp", "..\protocols\Wh EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dummy", "..\protocols\Dummy\dummy.vcxproj", "{D3B4DDFF-D3A5-4452-AE9D-B43B3C97C821}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam_12.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ICQCorp", "..\protocols\ICQCorp\ICQCorp_12.vcxproj", "{AD0D0500-CE7D-417D-9C36-3620D56CA6D4}" EndProject diff --git a/bin12/mir_full.sln b/bin12/mir_full.sln index 9b56782dcf..f4d3e529b0 100644 --- a/bin12/mir_full.sln +++ b/bin12/mir_full.sln @@ -415,7 +415,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WhatsApp", "..\protocols\Wh EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dummy", "..\protocols\Dummy\dummy.vcxproj", "{D3B4DDFF-D3A5-4452-AE9D-B43B3C97C821}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam_12.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Steam", "..\protocols\Steam\Steam.vcxproj", "{8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OpenSSL", "..\plugins\OpenSSL\OpenSSL_12.vcxproj", "{6C0C35E7-6522-403C-BB60-9805CDB9E52F}" EndProject diff --git a/bin12/mir_icons.sln b/bin12/mir_icons.sln index b1a5817cdc..ba75b10adb 100644 --- a/bin12/mir_icons.sln +++ b/bin12/mir_icons.sln @@ -76,7 +76,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_MetaContacts", "..\sr EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Dummy", "..\protocols\Dummy\proto_dummy\Proto_Dummy_12.vcxproj", "{018F801B-E80F-4E49-A640-E30BC445E74A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Steam", "..\protocols\Steam\proto_steam\Proto_Steam_12.vcxproj", "{523D76E4-1AB3-49B6-AFF0-E6057FAB9BC0}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Proto_Steam", "..\protocols\Steam\proto_steam\Proto_Steam.vcxproj", "{523D76E4-1AB3-49B6-AFF0-E6057FAB9BC0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/protocols/Steam/Steam.vcxproj b/protocols/Steam/Steam.vcxproj new file mode 100644 index 0000000000..7f9e2eba8b --- /dev/null +++ b/protocols/Steam/Steam.vcxproj @@ -0,0 +1,33 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB} + Steam + + + + + + + Sync + + + \ No newline at end of file diff --git a/protocols/Steam/Steam.vcxproj.filters b/protocols/Steam/Steam.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/protocols/Steam/Steam.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/protocols/Steam/Steam_10.vcxproj b/protocols/Steam/Steam_10.vcxproj deleted file mode 100644 index f52cbf1189..0000000000 --- a/protocols/Steam/Steam_10.vcxproj +++ /dev/null @@ -1,248 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB} - Steam - - - - DynamicLibrary - true - Unicode - - - DynamicLibrary - true - Unicode - - - DynamicLibrary - false - true - Unicode - - - DynamicLibrary - false - true - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - false - true - 4996;%(DisableSpecificWarnings) - MultiThreadedDebugDLL - $(IntDir)\%(RelativeDir)\ - common.h - Use - - - Windows - true - $(ProfileDir)..\..\bin10\lib - $(IntDir)$(TargetName).lib - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - false - /PDBALTPATH:%_PDB% %(AdditionalOptions) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - false - true - 4996;%(DisableSpecificWarnings) - MultiThreadedDebugDLL - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - $(ProfileDir)..\..\bin10\lib - $(IntDir)$(TargetName).lib - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - false - /PDBALTPATH:%_PDB% %(AdditionalOptions) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Full - true - true - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - 4996;%(DisableSpecificWarnings) - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - true - true - false - /PDBALTPATH:%_PDB% - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Full - true - true - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - 4996;%(DisableSpecificWarnings) - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - true - true - false - /PDBALTPATH:%_PDB% - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Steam/Steam_10.vcxproj.filters b/protocols/Steam/Steam_10.vcxproj.filters deleted file mode 100644 index 4b9cbf0d34..0000000000 --- a/protocols/Steam/Steam_10.vcxproj.filters +++ /dev/null @@ -1,133 +0,0 @@ - - - - - {13e9b105-554f-4080-b7de-8adf0f43b9f6} - - - {b14a0070-da9c-49e8-8a47-d93df5eed672} - - - {901463af-0f59-4125-b874-1662b095d403} - - - {4df49e9a-8abc-4fcc-978b-8a6e6f86d70f} - - - {f3fc3bb2-b1ba-4066-bd18-d2e458cd5724} - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files\Steam - - - Header Files - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - - - Resource Files - - - Resource Files - - - - - Resource Files\Icon - - - Resource Files\Icon - - - \ No newline at end of file diff --git a/protocols/Steam/Steam_12.vcxproj b/protocols/Steam/Steam_12.vcxproj deleted file mode 100644 index 02b74b1588..0000000000 --- a/protocols/Steam/Steam_12.vcxproj +++ /dev/null @@ -1,242 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {8236EA1F-579A-4AFB-9DFE-5FA056AEDDBB} - Steam - - - - DynamicLibrary - true - Unicode - v120 - - - DynamicLibrary - true - Unicode - v120 - - - DynamicLibrary - false - true - Unicode - v120 - - - DynamicLibrary - false - true - Unicode - v120 - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - false - true - 4996;%(DisableSpecificWarnings) - MultiThreadedDebugDLL - $(IntDir)\%(RelativeDir)\ - common.h - Use - - - Windows - true - $(ProfileDir)..\..\bin12\lib - $(IntDir)$(TargetName).lib - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - false - /PDBALTPATH:%_PDB% %(AdditionalOptions) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - false - true - 4996;%(DisableSpecificWarnings) - MultiThreadedDebugDLL - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - $(ProfileDir)..\..\bin10\lib;$(ProfileDir)..\..\..\OpenSSL\Win64\lib\VC - $(IntDir)$(TargetName).lib - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - false - /PDBALTPATH:%_PDB% %(AdditionalOptions) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Full - true - true - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - 4996;%(DisableSpecificWarnings) - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - true - true - false - /PDBALTPATH:%_PDB% - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Level3 - Full - true - true - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - ..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories) - 4996;%(DisableSpecificWarnings) - $(IntDir)\%(RelativeDir)\ - Use - common.h - - - Windows - true - true - true - false - /PDBALTPATH:%_PDB% - crypt32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - $(IntDir)$(TargetName).lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/protocols/Steam/Steam_12.vcxproj.filters b/protocols/Steam/Steam_12.vcxproj.filters deleted file mode 100644 index 8dd369638a..0000000000 --- a/protocols/Steam/Steam_12.vcxproj.filters +++ /dev/null @@ -1,133 +0,0 @@ - - - - - {13e9b105-554f-4080-b7de-8adf0f43b9f6} - - - {b14a0070-da9c-49e8-8a47-d93df5eed672} - - - {901463af-0f59-4125-b874-1662b095d403} - - - {4df49e9a-8abc-4fcc-978b-8a6e6f86d70f} - - - {d01fa53f-d17d-468f-988d-ab1a2d154af5} - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files\Steam - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Resource Files\Icon - - - Resource Files\Icon - - - \ No newline at end of file diff --git a/protocols/Steam/src/common.h b/protocols/Steam/src/common.h deleted file mode 100644 index d39881dbd2..0000000000 --- a/protocols/Steam/src/common.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef _COMMON_H_ -#define _COMMON_H_ - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include "resource.h" -#include "version.h" - -#define MODULE "Steam" - -#define STEAM_API_TIMEOUT 30 -#define STEAM_API_IDLEOUT_AWAY 600 -#define STEAM_API_IDLEOUT_SNOOZE 8000 - -class CSteamProto; -extern HINSTANCE g_hInstance; - -extern HANDLE hExtraXStatus; - -#include "Steam\steam.h" - -#include "steam_dialogs.h" -#include "steam_proto.h" - -#endif //_COMMON_H_ \ No newline at end of file diff --git a/protocols/Steam/src/stdafx.cpp b/protocols/Steam/src/stdafx.cpp deleted file mode 100644 index 7c6793d8cb..0000000000 --- a/protocols/Steam/src/stdafx.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include "common.h" - -int hLangpack; -HINSTANCE g_hInstance; - -HANDLE hExtraXStatus; - -PLUGININFOEX pluginInfo = -{ - sizeof(PLUGININFOEX), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __AUTHOREMAIL, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - // {68F5A030-BA32-48EC-9507-5C2FBDEA5217} - { 0x68f5a030, 0xba32, 0x48ec, { 0x95, 0x7, 0x5c, 0x2f, 0xbd, 0xea, 0x52, 0x17 }} -}; - -DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID) -{ - g_hInstance = hInstance; - - return TRUE; -} - -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) -{ - return &pluginInfo; -} - -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; - -extern "C" int __declspec(dllexport) Load(void) -{ - mir_getLP(&pluginInfo); - - PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; - pd.szName = "STEAM"; - pd.type = PROTOTYPE_PROTOCOL; - pd.fnInit = (pfnInitProto)CSteamProto::InitProtoInstance; - 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; -} - -extern "C" int __declspec(dllexport) Unload(void) -{ - CSteamProto::UninitProtoInstances(); - - CSteamProto::UninitMenus(); - - return 0; -} \ No newline at end of file diff --git a/protocols/Steam/src/stdafx.cxx b/protocols/Steam/src/stdafx.cxx new file mode 100644 index 0000000000..6fe8317684 --- /dev/null +++ b/protocols/Steam/src/stdafx.cxx @@ -0,0 +1,67 @@ +#include "stdafx.h" + +int hLangpack; +HINSTANCE g_hInstance; + +HANDLE hExtraXStatus; + +PLUGININFOEX pluginInfo = +{ + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {68F5A030-BA32-48EC-9507-5C2FBDEA5217} + { 0x68f5a030, 0xba32, 0x48ec, { 0x95, 0x7, 0x5c, 0x2f, 0xbd, 0xea, 0x52, 0x17 }} +}; + +DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID) +{ + g_hInstance = hInstance; + + return TRUE; +} + +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) +{ + return &pluginInfo; +} + +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; + +extern "C" int __declspec(dllexport) Load(void) +{ + mir_getLP(&pluginInfo); + + PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; + pd.szName = "STEAM"; + pd.type = PROTOTYPE_PROTOCOL; + pd.fnInit = (pfnInitProto)CSteamProto::InitProtoInstance; + 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; +} + +extern "C" int __declspec(dllexport) Unload(void) +{ + CSteamProto::UninitProtoInstances(); + + CSteamProto::UninitMenus(); + + return 0; +} \ No newline at end of file diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h new file mode 100644 index 0000000000..d39881dbd2 --- /dev/null +++ b/protocols/Steam/src/stdafx.h @@ -0,0 +1,58 @@ +#ifndef _COMMON_H_ +#define _COMMON_H_ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "resource.h" +#include "version.h" + +#define MODULE "Steam" + +#define STEAM_API_TIMEOUT 30 +#define STEAM_API_IDLEOUT_AWAY 600 +#define STEAM_API_IDLEOUT_SNOOZE 8000 + +class CSteamProto; +extern HINSTANCE g_hInstance; + +extern HANDLE hExtraXStatus; + +#include "Steam\steam.h" + +#include "steam_dialogs.h" +#include "steam_proto.h" + +#endif //_COMMON_H_ \ No newline at end of file diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp index 9ea391ad95..a01bc51e38 100644 --- a/protocols/Steam/src/steam_account.cpp +++ b/protocols/Steam/src/steam_account.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" bool CSteamProto::IsOnline() { diff --git a/protocols/Steam/src/steam_avatars.cpp b/protocols/Steam/src/steam_avatars.cpp index b0d2cb0bbc..ec2694b878 100644 --- a/protocols/Steam/src/steam_avatars.cpp +++ b/protocols/Steam/src/steam_avatars.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" TCHAR* CSteamProto::GetAvatarFilePath(MCONTACT hContact) { diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 8fca50265a..64c98467de 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" void CSteamProto::SetContactStatus(MCONTACT hContact, WORD status) { diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp index c071c7cc84..e75d1a913f 100644 --- a/protocols/Steam/src/steam_dialogs.cpp +++ b/protocols/Steam/src/steam_dialogs.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" CSteamPasswordEditor::CSteamPasswordEditor(CSteamProto *proto) : CSuper(proto, IDD_PASSWORD_EDITOR, false), m_ok(this, IDOK), diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 2da994ebfc..ee4669ca5b 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" int CSteamProto::OnModulesLoaded(WPARAM, LPARAM) { diff --git a/protocols/Steam/src/steam_instances.cpp b/protocols/Steam/src/steam_instances.cpp index 82b62f9654..c2113d3c6c 100644 --- a/protocols/Steam/src/steam_instances.cpp +++ b/protocols/Steam/src/steam_instances.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" int CSteamProto::CompareProtos(const CSteamProto *p1, const CSteamProto *p2) { diff --git a/protocols/Steam/src/steam_menus.cpp b/protocols/Steam/src/steam_menus.cpp index 4ec5f32339..b4507db158 100644 --- a/protocols/Steam/src/steam_menus.cpp +++ b/protocols/Steam/src/steam_menus.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" HANDLE CSteamProto::hChooserMenu; HGENMENU CSteamProto::contactMenuItems[CMI_MAX]; diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp index f2f2c51c8a..48f59b0ce6 100644 --- a/protocols/Steam/src/steam_messages.cpp +++ b/protocols/Steam/src/steam_messages.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" //void CSteamProto::SendTypingThread(void *arg) //{ diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 1bf9f8314e..e1dcb1ff28 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" #define POLLING_ERRORS_LIMIT 3 diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index d144abd8f5..1b005a628d 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" CSteamProto::CSteamProto(const char* protoName, const TCHAR* userName) : PROTO(protoName, userName), diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index d0bd54ad61..dd51f4caee 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" void CSteamProto::InitQueue() { diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index 40fd27d888..ea924eac86 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -1,4 +1,6 @@ -#include "common.h" +#include "stdafx.h" + +#pragma comment(lib, "crypt32.lib") WORD CSteamProto::SteamToMirandaStatus(int state) { @@ -116,7 +118,7 @@ int CSteamProto::RsaEncrypt(const char *pszModulus, const char *data, BYTE *encr goto exit; } - DWORD dataSize = strlen(data); + DWORD dataSize = (DWORD)strlen(data); // if data is not allocated just renurn size if (encryptedData == NULL) diff --git a/protocols/Steam/src/steam_xstatus.cpp b/protocols/Steam/src/steam_xstatus.cpp index ca20df452a..eee37f824a 100644 --- a/protocols/Steam/src/steam_xstatus.cpp +++ b/protocols/Steam/src/steam_xstatus.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" #define STATUS_TITLE_MAX 64 #define STATUS_DESC_MAX 250 @@ -6,7 +6,7 @@ static std::vector xstatusIconsValid; static std::map xstatusIcons; -int OnReloadIcons(WPARAM wParam, LPARAM lParam) +int OnReloadIcons(WPARAM, LPARAM) { xstatusIconsValid.clear(); return 0; @@ -113,7 +113,7 @@ INT_PTR CSteamProto::OnGetXStatusIcon(WPARAM wParam, LPARAM lParam) return (INT_PTR)GetXStatusIcon(wParam, lParam); } -INT_PTR CSteamProto::OnRequestAdvStatusIconIdx(WPARAM wParam, LPARAM lParam) +INT_PTR CSteamProto::OnRequestAdvStatusIconIdx(WPARAM wParam, LPARAM) { int status = GetContactXStatus(wParam); if (status) -- cgit v1.2.3