Skip to content

Commit

Permalink
fix interface getter and steamutils class
Browse files Browse the repository at this point in the history
  • Loading branch information
Detanup01 authored Oct 23, 2024
1 parent 47c6f8e commit 6be3ba1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions dll/dll/steam_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


class Steam_Utils :
public ISteamUtils001,
public ISteamUtils002,
public ISteamUtils003,
public ISteamUtils004,
Expand Down
5 changes: 4 additions & 1 deletion dll/steam_client_interface_getter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ISteamUtils *>(static_cast<ISteamUtils001 *>(steam_utils_temp));
} else if (strcmp(pchVersion, "SteamUtils002") == 0) {
return reinterpret_cast<ISteamUtils *>(static_cast<ISteamUtils002 *>(steam_utils_temp));
} else if (strcmp(pchVersion, "SteamUtils003") == 0) {
return reinterpret_cast<ISteamUtils *>(static_cast<ISteamUtils003 *>(steam_utils_temp)); // ISteamUtils003 Not found in public Archive, must be between 1.02-1.03
Expand Down

0 comments on commit 6be3ba1

Please sign in to comment.