Fix Replace

This commit is contained in:
Detanup01 2024-01-05 11:30:09 +01:00 committed by otavepto
parent 051db907e3
commit e221d8e1d2

View File

@ -62,13 +62,13 @@ static bool try_load_steam_interfaces(std::string interfaces_path)
line.erase(std::remove(line.begin(), line.end(), '\t'), line.end());
#define REPLACE_WITH_FILE(s, f) {if (line.find(s) != std::string::npos) {strncpy(f, line.c_str(), sizeof(f) - 1); continue;}}
REPLACE_WITH_FILE("SteamClient", old_client);
REPLACE_WITH_FILE("SteamGameServer", old_gameserver);
REPLACE_WITH_FILE("SteamGameServerStats", old_gameserver_stats);
REPLACE_WITH_FILE("SteamGameServer", old_gameserver);
REPLACE_WITH_FILE("SteamUser", old_user);
REPLACE_WITH_FILE("SteamFriends", old_friends);
REPLACE_WITH_FILE("SteamUtils", old_utils);
REPLACE_WITH_FILE("SteamMatchMaking", old_matchmaking);
REPLACE_WITH_FILE("SteamMatchMakingServers", old_matchmaking_servers);
REPLACE_WITH_FILE("SteamMatchMaking", old_matchmaking);
REPLACE_WITH_FILE("STEAMUSERSTATS_INTERFACE_VERSION", old_userstats);
REPLACE_WITH_FILE("STEAMAPPS_INTERFACE_VERSION", old_apps);
REPLACE_WITH_FILE("SteamNetworking", old_networking);