mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Network settings: Show proper server name if available
This commit is contained in:
1 parent
420eca98d6
commit
5ef608a12a
3 files changed
+33
-5
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user