mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
fix interface getter and steamutils class
This commit is contained in:
parent
47c6f8ef3d
commit
6be3ba1963
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
|
|
||||||
class Steam_Utils :
|
class Steam_Utils :
|
||||||
|
public ISteamUtils001,
|
||||||
public ISteamUtils002,
|
public ISteamUtils002,
|
||||||
public ISteamUtils003,
|
public ISteamUtils003,
|
||||||
public ISteamUtils004,
|
public ISteamUtils004,
|
||||||
|
@ -209,7 +209,10 @@ ISteamUtils *Steam_Client::GetISteamUtils( HSteamPipe hSteamPipe, const char *pc
|
|||||||
steam_utils_temp = steam_utils;
|
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));
|
return reinterpret_cast<ISteamUtils *>(static_cast<ISteamUtils002 *>(steam_utils_temp));
|
||||||
} else if (strcmp(pchVersion, "SteamUtils003") == 0) {
|
} 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
|
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