mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
fix interface getter and steamutils class
This commit is contained in:
parent
47c6f8ef3d
commit
6be3ba1963
@ -25,6 +25,7 @@
|
||||
|
||||
|
||||
class Steam_Utils :
|
||||
public ISteamUtils001,
|
||||
public ISteamUtils002,
|
||||
public ISteamUtils003,
|
||||
public ISteamUtils004,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user