mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-08-11 01:45:34 +02:00
apply changes suggested by Detanup01 in a PR
This commit is contained in:
parent
ad6ff0b4e8
commit
77ff74d6e1
1 changed files with 4 additions and 6 deletions
|
@ -97,19 +97,17 @@ ISteamUser *Steam_Client::GetISteamUser( HSteamUser hSteamUser, HSteamPipe hStea
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("%s", pchVersion);
|
PRINT_DEBUG("%s", pchVersion);
|
||||||
|
|
||||||
|
if (!hSteamUser) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
if (!steam_pipes.count(hSteamPipe)) {
|
if (!steam_pipes.count(hSteamPipe)) {
|
||||||
// Fallback for steamclient_experimental build: if pipe 1 is requested but not found,
|
// 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
|
// and we have other valid pipes, continue execution instead of returning NULL
|
||||||
if (hSteamPipe == 1 && !steam_pipes.empty()) {
|
if (hSteamPipe == 1 || !steam_pipes.empty()) {
|
||||||
// Continue with function execution using available pipes
|
|
||||||
} else {
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hSteamUser) {
|
|
||||||
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