aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/masterserver.h
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-26 10:33:39 +0100
committerGitHub <noreply@github.com>2022-11-26 04:33:39 -0500
commit3d7e310a3253ad41707217e77c62f1d8dcbc3a8b (patch)
tree9528666da9bddfffaaf7da184d3baded88f1ac4b /NorthstarDLL/masterserver.h
parentc409332991d49a1ee5911a076852452cf1890659 (diff)
downloadNorthstarLauncher-3d7e310a3253ad41707217e77c62f1d8dcbc3a8b.tar.gz
NorthstarLauncher-3d7e310a3253ad41707217e77c62f1d8dcbc3a8b.zip
Parse and expose region field from JSON server list (#232)
* Add parsing region field from JSON server list * Add function to read server region from Squirrel * Update logic to post-refactor code * Make region field optional
Diffstat (limited to 'NorthstarDLL/masterserver.h')
-rw-r--r--NorthstarDLL/masterserver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/masterserver.h b/NorthstarDLL/masterserver.h
index eb784002..4e649fae 100644
--- a/NorthstarDLL/masterserver.h
+++ b/NorthstarDLL/masterserver.h
@@ -27,6 +27,7 @@ class RemoteServerInfo
std::string description;
char map[32];
char playlist[16];
+ char region[32];
std::vector<RemoteModInfo> requiredMods;
int playerCount;
@@ -42,6 +43,7 @@ class RemoteServerInfo
const char* newDescription,
const char* newMap,
const char* newPlaylist,
+ const char* newRegion,
int newPlayerCount,
int newMaxPlayers,
bool newRequiresPassword);