diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp index 2e59c2c3..01ae2d39 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp @@ -1077,12 +1077,24 @@ PF_CONSOLE_GROUP(Server) //============================================================================ PF_CONSOLE_CMD( Server, - Url, + Status, "string url", - "Set the displayable server URL" + "Set the server's status URL" ) { wchar_t *wurl = hsStringToWString((const char *)params[0]); - SetServerUrl(wurl); + SetServerStatusUrl(wurl); + delete [] wurl; +} + +//============================================================================ +PF_CONSOLE_CMD( + Server, + Signup, + "string url", + "Set the server's new user sign-up URL" +) { + wchar_t *wurl = hsStringToWString((const char *)params[0]); + SetServerSignupUrl(wurl); delete [] wurl; } diff --git a/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.cpp b/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.cpp index a700e034..7e70a375 100644 --- a/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.cpp +++ b/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.cpp @@ -264,16 +264,28 @@ bool GateKeeperSrvHostnameOverride () { //============================================================================ // User-visible Server //============================================================================ -static wchar s_serverUrl[256]; +static wchar s_serverStatusUrl[256]; +static wchar s_serverSignupUrl[256]; static wchar s_serverName[256]; -const wchar *GetServerUrl () { - return s_serverUrl; +//============================================================================ +const wchar *GetServerStatusUrl () { + return s_serverStatusUrl; +} + +//============================================================================ +void SetServerStatusUrl (const wchar url[]) { + StrCopy(s_serverStatusUrl, url, arrsize(s_serverStatusUrl)); +} + +//============================================================================ +const wchar *GetServerSignupUrl () { + return s_serverSignupUrl; } //============================================================================ -void SetServerUrl (const wchar url[]) { - StrCopy(s_serverUrl, url, arrsize(s_serverUrl)); +void SetServerSignupUrl (const wchar url[]) { + StrCopy(s_serverSignupUrl, url, arrsize(s_serverSignupUrl)); } //============================================================================ diff --git a/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.h b/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.h index 1b1a454d..548828b6 100644 --- a/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.h +++ b/Sources/Plasma/NucleusLib/pnNetBase/Private/pnNbSrvs.h @@ -89,8 +89,11 @@ unsigned GetGateKeeperSrvHostnames (const wchar *** addrs); // returns addrCount void SetGateKeeperSrvHostname (const wchar addr[]); bool GateKeeperSrvHostnameOverride (); -const wchar *GetServerUrl (); -void SetServerUrl (const wchar url[]); +const wchar *GetServerStatusUrl (); +void SetServerStatusUrl (const wchar url[]); + +const wchar *GetServerSignupUrl (); +void SetServerSignupUrl (const wchar url[]); const wchar *GetServerDisplayName (); void SetServerDisplayName (const wchar name[]);