mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-08-13 02:45:34 +02:00
Merge pull request #293 from suprovsky/dev
Fix SteamUser023 interface issue for steamclient_experimental
This commit is contained in:
commit
7828bb2403
1 changed files with 12 additions and 1 deletions
|
@ -96,7 +96,18 @@ ISteamGameStats *Steam_Client::GetISteamGameStats( HSteamUser hSteamUser, HSteam
|
||||||
ISteamUser *Steam_Client::GetISteamUser( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion )
|
ISteamUser *Steam_Client::GetISteamUser( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("%s", pchVersion);
|
PRINT_DEBUG("%s", pchVersion);
|
||||||
if (!steam_pipes.count(hSteamPipe) || !hSteamUser) return NULL;
|
|
||||||
|
if (!hSteamUser) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
if (!steam_pipes.count(hSteamPipe)) {
|
||||||
|
// Fallback for steamclient_experimental build: if pipe 1 is requested but not found,
|
||||||
|
// and we have other valid pipes, continue execution instead of returning NULL
|
||||||
|
if (hSteamPipe !=1 || steam_pipes.empty()) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (strcmp(pchVersion, "SteamUser004") == 0) {
|
if (strcmp(pchVersion, "SteamUser004") == 0) {
|
||||||
return reinterpret_cast<ISteamUser *>(static_cast<ISteamUser004 *>(steam_user)); // sdk 0.99u
|
return reinterpret_cast<ISteamUser *>(static_cast<ISteamUser004 *>(steam_user)); // sdk 0.99u
|
||||||
|
|
Loading…
Add table
Reference in a new issue