Network settings: Show proper server name if available

This commit is contained in:
Henrik Rydgård committed 2026-04-13 11:30:52 -06:00
1 parent 420eca98d6
commit 5ef608a12a
3 files changed
+33 -5

No files matched your search

+8
View File
@@ -71,6 +71,14 @@ std::vector<AdhocGame> ParseDataJson(std::string_view json) {
game.usercount = g.HasMember("usercount") ? ParseUserCountValue(g["usercount"]) : 0;
if (g.HasMember("game_ids") && g["game_ids"].IsArray()) {
for (auto& id : g["game_ids"].GetArray()) {
if (!id.IsString())
continue;
game.game_ids.push_back(id.GetString());
}
}
if (g.HasMember("groups") && g["groups"].IsArray()) {
for (auto& grp : g["groups"].GetArray()) {
if (!grp.IsObject())