[Proxy] Fix steam proxy

This commit is contained in:
momo5502 2019-02-23 23:42:53 +01:00
parent 083e3d0150
commit bdad3cfd32
2 changed files with 7 additions and 7 deletions

View File

@ -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<void>("SetAppIDForCurrentPipe", Proxy::AppId, false);
}
}
@ -157,7 +157,7 @@ namespace Steam
char* modId = "IW4x";
gameID.modID = *reinterpret_cast<unsigned int*>(modId) | 0x80000000;
Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe, "CLIENTUTILS_INTERFACE_VERSION001"));
Interface clientUtils(Proxy::ClientEngine->GetIClientUtils(Proxy::SteamPipe));
clientUtils.invoke<void>("SetAppIDForCurrentPipe", Proxy::AppId, false);
char ourPath[MAX_PATH] = { 0 };
@ -412,10 +412,10 @@ namespace Steam
Proxy::ClientEngine = Proxy::Client.get<IClientEngine*(const char*, int*)>("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<Apps7*>(Proxy::SteamClient->GetISteamApps(Proxy::SteamUser, Proxy::SteamPipe, "STEAMAPPS_INTERFACE_VERSION007"));

View File

@ -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;