[Proxy] Fix steam proxy

This commit is contained in:
OneFourOne 2020-12-17 09:38:11 -05:00 committed by GitHub
parent 747c90eb03
commit 85fbdbd082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,8 @@ namespace Steam
Interface Proxy::ClientUser;
Interface Proxy::ClientFriends;
Interface Proxy::Placeholder;
Proxy::Handle Proxy::SteamPipe = nullptr;
Proxy::Handle Proxy::SteamUser = nullptr;
@ -415,6 +417,9 @@ namespace Steam
Proxy::ClientUser = Proxy::ClientEngine->GetIClientUser(Proxy::SteamUser, Proxy::SteamPipe);
if (!Proxy::ClientUser) return false;
//temporary fix required since Steam runtime update v0.20201203.1 (an additional function was added by steam)
Proxy::Placeholder = Proxy::ClientEngine->Placeholder(0);
Proxy::ClientFriends = Proxy::ClientEngine->GetIClientFriends(Proxy::SteamUser, Proxy::SteamPipe);
if (!Proxy::ClientFriends) return false;