From 6be3ba1963f849fb47ce4f9175a6b0d1c5b7d0eb Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:00:28 +0200 Subject: [PATCH] fix interface getter and steamutils class --- dll/dll/steam_utils.h | 1 + dll/steam_client_interface_getter.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dll/dll/steam_utils.h b/dll/dll/steam_utils.h index 7a06bcb4..3d46e67c 100644 --- a/dll/dll/steam_utils.h +++ b/dll/dll/steam_utils.h @@ -25,6 +25,7 @@ class Steam_Utils : +public ISteamUtils001, public ISteamUtils002, public ISteamUtils003, public ISteamUtils004, diff --git a/dll/steam_client_interface_getter.cpp b/dll/steam_client_interface_getter.cpp index 1953adc6..4c6b2b09 100644 --- a/dll/steam_client_interface_getter.cpp +++ b/dll/steam_client_interface_getter.cpp @@ -209,7 +209,10 @@ ISteamUtils *Steam_Client::GetISteamUtils( HSteamPipe hSteamPipe, const char *pc steam_utils_temp = steam_utils; } - if (strcmp(pchVersion, "SteamUtils002") == 0) { + + if (strcmp(pchVersion, "SteamUtils001") == 0) { + return reinterpret_cast(static_cast(steam_utils_temp)); + } else if (strcmp(pchVersion, "SteamUtils002") == 0) { return reinterpret_cast(static_cast(steam_utils_temp)); } else if (strcmp(pchVersion, "SteamUtils003") == 0) { return reinterpret_cast(static_cast(steam_utils_temp)); // ISteamUtils003 Not found in public Archive, must be between 1.02-1.03