Improve steam_masterserver_updater stub.

This creates a new "custom_master_server.txt" file that can be used to pre-seed a master server list.

This also allows for steam apps to manipulate the master server list in memory.
I.e. This implements:
  Steam_Masterserver_Updater::AddMasterServer()
  Steam_Masterserver_Updater::RemoveMasterServer()
  Steam_Masterserver_Updater::GetNumMasterServers()
  Steam_Masterserver_Updater::GetMasterServerAddress()

Signed-off-by: redpolline <11156324-redpolline@users.noreply.gitlab.com>
This commit is contained in:
redpolline 2024-01-10 05:04:28 -05:00
parent 8f212b82ca
commit a2c9f9230f
4 changed files with 97 additions and 2 deletions

View file

@ -132,6 +132,9 @@ public:
//custom broadcasts
std::set<IP_PORT> custom_broadcasts;
//custom master server
std::set<IP_PORT> custom_master_server;
//stats
std::map<std::string, Stat_config> getStats() { return stats; }
void setStatDefiniton(std::string name, struct Stat_config stat_config) {stats[ascii_to_lowercase(name)] = stat_config; }