From ad6ff0b4e898c41c4edceee38b2eed7622b266f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Serba?= Date: Wed, 23 Jul 2025 07:28:19 +0000 Subject: [PATCH] Fix SteamUser023 issue --- dll/steam_client_interface_getter.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/dll/steam_client_interface_getter.cpp b/dll/steam_client_interface_getter.cpp index 68c209a4..49b82bdd 100644 --- a/dll/steam_client_interface_getter.cpp +++ b/dll/steam_client_interface_getter.cpp @@ -96,7 +96,20 @@ ISteamGameStats *Steam_Client::GetISteamGameStats( HSteamUser hSteamUser, HSteam ISteamUser *Steam_Client::GetISteamUser( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion ) { PRINT_DEBUG("%s", pchVersion); - if (!steam_pipes.count(hSteamPipe) || !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()) { + // Continue with function execution using available pipes + } else { + return NULL; + } + } + + if (!hSteamUser) { + return NULL; + } if (strcmp(pchVersion, "SteamUser004") == 0) { return reinterpret_cast(static_cast(steam_user)); // sdk 0.99u