Add region tld

This commit is contained in:
SaltySnail
2026-06-23 02:38:02 +02:00
parent 92381aa048
commit 55efae0658
8 changed files with 43 additions and 14 deletions
+11 -1
View File
@@ -336,4 +336,14 @@ namespace Utils {
throw std::runtime_error("Game disconnected");
}
}
};
inline std::string RegionToTopLevelDomain(const std::string region) {
if (region == "Restricted") {
return "beammp.ru";
}
else if (region == "Developer") {
return "beammp.dev";
}
return "beammp.com"; // Global
}
};