From bdad3cfd32b5fbd80c8164e19bf1e0fdb18b0e14 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 23 Feb 2019 23:42:53 +0100 Subject: [PATCH] [Proxy] Fix steam proxy --- src/Steam/Proxy.cpp | 8 ++++---- src/Steam/Proxy.hpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Steam/Proxy.cpp b/src/Steam/Proxy.cpp index 36641634..8ab6a4fb 100644 --- a/src/Steam/Proxy.cpp +++ b/src/Steam/Proxy.cpp @@ -136,7 +136,7 @@ namespace Steam ::Utils::IO::WriteFile("steam_appid.txt", ::Utils::String::VA("%lu", Proxy::AppId), false); - Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe, "CLIENTUTILS_INTERFACE_VERSION001")); + Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe)); clientUtils.invoke("SetAppIDForCurrentPipe", Proxy::AppId, false); } } @@ -157,7 +157,7 @@ namespace Steam char* modId = "IW4x"; gameID.modID = *reinterpret_cast(modId) | 0x80000000; - Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe, "CLIENTUTILS_INTERFACE_VERSION001")); + Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe)); clientUtils.invoke("SetAppIDForCurrentPipe", Proxy::AppId, false); char ourPath[MAX_PATH] = { 0 }; @@ -412,10 +412,10 @@ namespace Steam Proxy::ClientEngine = Proxy::Client.get("CreateInterface")("CLIENTENGINE_INTERFACE_VERSION005", nullptr); if (!Proxy::ClientEngine) return false; - Proxy::ClientUser = Proxy::ClientEngine->GetIClientUser(Proxy::SteamUser, Proxy::SteamPipe, "CLIENTUSER_INTERFACE_VERSION001"); + Proxy::ClientUser = Proxy::ClientEngine->GetIClientUser(Proxy::SteamUser, Proxy::SteamPipe); if (!Proxy::ClientUser) return false; - Proxy::ClientFriends = Proxy::ClientEngine->GetIClientFriends(Proxy::SteamUser, Proxy::SteamPipe, "CLIENTFRIENDS_INTERFACE_VERSION001"); + Proxy::ClientFriends = Proxy::ClientEngine->GetIClientFriends(Proxy::SteamUser, Proxy::SteamPipe); if (!Proxy::ClientFriends) return false; Proxy::SteamApps = reinterpret_cast(Proxy::SteamClient->GetISteamApps(Proxy::SteamUser, Proxy::SteamPipe, "STEAMAPPS_INTERFACE_VERSION007")); diff --git a/src/Steam/Proxy.hpp b/src/Steam/Proxy.hpp index e0630846..b2e1e9c9 100644 --- a/src/Steam/Proxy.hpp +++ b/src/Steam/Proxy.hpp @@ -51,12 +51,12 @@ namespace Steam virtual unknown_ret CreatePipeToLocalUser(int32, int32 *) = 0; virtual unknown_ret ReleaseUser(int32, int32) = 0; virtual unknown_ret IsValidHSteamUserPipe(int32, int32) = 0; - virtual unknown_ret GetIClientUser(int32, int32, const char *) = 0; + virtual unknown_ret GetIClientUser(int32, int32) = 0; virtual unknown_ret GetIClientGameServer(int32, int32, const char *) = 0; virtual unknown_ret SetLocalIPBinding(uint32, uint16) = 0; virtual unknown_ret GetUniverseName(int) = 0; - virtual unknown_ret GetIClientFriends(int32, int32, const char *) = 0; - virtual unknown_ret GetIClientUtils(int32, const char *) = 0; + virtual unknown_ret GetIClientFriends(int32, int32) = 0; + virtual unknown_ret GetIClientUtils(int32) = 0; virtual unknown_ret GetIClientBilling(int32, int32, const char *) = 0; virtual unknown_ret GetIClientMatchmaking(int32, int32, const char *) = 0; virtual unknown_ret GetIClientApps(int32, int32, const char *) = 0;