mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Support old steam http interfaces.
This commit is contained in:
parent
76c9e7a9ee
commit
0595490c00
5 changed files with 231 additions and 3 deletions
|
|
@ -812,11 +812,25 @@ ISteamHTTP *Steam_Client::GetISteamHTTP( HSteamUser hSteamuser, HSteamPipe hStea
|
|||
{
|
||||
PRINT_DEBUG("GetISteamHTTP %s\n", pchVersion);
|
||||
if (!steam_pipes.count(hSteamPipe) || !hSteamuser) return NULL;
|
||||
Steam_HTTP *steam_http_temp;
|
||||
|
||||
if (steam_pipes[hSteamPipe] == Steam_Pipe::SERVER) {
|
||||
return steam_gameserver_http;
|
||||
steam_http_temp = steam_gameserver_http;
|
||||
} else {
|
||||
steam_http_temp = steam_http;
|
||||
}
|
||||
|
||||
return steam_http;
|
||||
if (strcmp(pchVersion, "STEAMHTTP_INTERFACE_VERSION001") == 0) {
|
||||
return (ISteamHTTP *)(void *)(ISteamHTTP001 *)steam_http_temp;
|
||||
} else if (strcmp(pchVersion, "STEAMHTTP_INTERFACE_VERSION002") == 0) {
|
||||
return (ISteamHTTP *)(void *)(ISteamHTTP002 *)steam_http_temp;
|
||||
} else if (strcmp(pchVersion, STEAMHTTP_INTERFACE_VERSION) == 0) {
|
||||
return (ISteamHTTP *)(void *)(ISteamHTTP *)steam_http_temp;
|
||||
} else {
|
||||
return (ISteamHTTP *)(void *)(ISteamHTTP *)steam_http_temp;
|
||||
}
|
||||
|
||||
return steam_http_temp;
|
||||
}
|
||||
|
||||
// Deprecated - the ISteamUnifiedMessages interface is no longer intended for public consumption.
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@ struct Steam_Http_Request {
|
|||
std::string response;
|
||||
};
|
||||
|
||||
class Steam_HTTP : public ISteamHTTP
|
||||
class Steam_HTTP :
|
||||
public ISteamHTTP001,
|
||||
public ISteamHTTP002,
|
||||
public ISteamHTTP
|
||||
{
|
||||
class Settings *settings;
|
||||
class Networking *network;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue