[Steam] Fix steam integration

This commit is contained in:
momo5502 2018-11-24 23:10:40 +01:00
parent 41df24f249
commit 212a6ff608
2 changed files with 4 additions and 3 deletions

View File

@ -169,7 +169,7 @@ namespace Steam
size_t expectedParams = Proxy::ClientUser.paramSize("SpawnProcess");
if (expectedParams == 40) // Release
{
Proxy::ClientUser.invoke<bool>("SpawnProcess", ourPath, cmdline.data(), 0, ourDirectory, gameID.bits, Proxy::AppId, mod.data(), 0, 0);
Proxy::ClientUser.invoke<bool>("SpawnProcess", ourPath, cmdline.data(), 0, ourDirectory, gameID.bits, mod.data(), Proxy::AppId, 0, 0);
}
else if (expectedParams == 36) // Beta
{
@ -403,7 +403,7 @@ namespace Steam
Proxy::SteamUser = Proxy::SteamClient->ConnectToGlobalUser(Proxy::SteamPipe);
if (!Proxy::SteamUser) return false;
Proxy::ClientEngine = Proxy::Client.get<IClientEngine*(const char*, int*)>("CreateInterface")("CLIENTENGINE_INTERFACE_VERSION004", nullptr);
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");

View File

@ -95,10 +95,11 @@ namespace Steam
virtual unknown_ret GetIClientRemoteClientManager(int32, const char *) = 0;
virtual unknown_ret GetIClientStreamClient(int32, int32, const char *) = 0;
virtual unknown_ret GetIClientShortcuts(int32, int32, const char *) = 0;
virtual unknown_ret GetIClientRemoteControlManager(int32) = 0;
virtual unknown_ret Set_ClientAPI_CPostAPIResultInProcess(void(*)(uint64, void *, uint32, int32)) = 0;
virtual unknown_ret Remove_ClientAPI_CPostAPIResultInProcess(void(*)(uint64, void *, uint32, int32)) = 0;
virtual unknown_ret GetIClientUGC(int32, int32, const char *) = 0;
virtual unknown_ret GetIClientInventory(int32, int32, const char *) = 0;
//virtual unknown_ret GetIClientInventory(int32, int32, const char *) = 0;
virtual unknown_ret GetIClientVR(int32, const char *) = 0;
virtual unknown_ret GetIClientTabletop(int32, int32, const char *) = 0;
virtual unknown_ret GetIClientHTMLSurface(int32, int32, const char *) = 0;