mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
Remove Network function name prefixes given namespace qualifiers
This commit is contained in:
@@ -91,13 +91,13 @@ namespace OpenRCT2::Network
|
||||
{
|
||||
default:
|
||||
details = GetParkName();
|
||||
if (NetworkGetMode() == NETWORK_MODE_NONE)
|
||||
if (Network::GetMode() == Network::Mode::none)
|
||||
{
|
||||
state = "Playing Solo";
|
||||
}
|
||||
else
|
||||
{
|
||||
FmtString fmtServerName(NetworkGetServerName());
|
||||
FmtString fmtServerName(Network::GetServerName());
|
||||
std::string serverName;
|
||||
for (const auto& token : fmtServerName)
|
||||
{
|
||||
@@ -115,10 +115,10 @@ namespace OpenRCT2::Network
|
||||
}
|
||||
state = serverName;
|
||||
|
||||
partyId = NetworkGetServerName();
|
||||
partyId = Network::GetServerName();
|
||||
// NOTE: the party size is displayed next to state
|
||||
discordPresence.partyId = partyId.c_str();
|
||||
discordPresence.partySize = NetworkGetNumPlayers();
|
||||
discordPresence.partySize = Network::GetNumPlayers();
|
||||
discordPresence.partyMax = 256;
|
||||
|
||||
// TODO generate secrets for the server
|
||||
|
||||
Reference in New Issue
Block a user