From 1cee50c6cf50748cf0fee0b4cefdeb590db2bd7f Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 20 Feb 2016 19:00:25 +0100 Subject: [PATCH] Changed: Added NamingPolicyURL variable in cfg --- code/ryzom/client/src/client_cfg.cpp | 1 + code/ryzom/client/src/client_cfg.h | 1 + code/ryzom/client/src/login.cpp | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/code/ryzom/client/src/client_cfg.cpp b/code/ryzom/client/src/client_cfg.cpp index 84ccada65..32b345294 100644 --- a/code/ryzom/client/src/client_cfg.cpp +++ b/code/ryzom/client/src/client_cfg.cpp @@ -884,6 +884,7 @@ void CClientConfig::setValues() READ_STRING_FV(CreateAccountURL) READ_STRING_FV(EditAccountURL) READ_STRING_FV(ConditionsTermsURL) + READ_STRING_FV(NamingPolicyURL) READ_STRING_FV(BetaAccountURL) READ_STRING_FV(ForgetPwdURL) READ_STRING_FV(FreeTrialURL) diff --git a/code/ryzom/client/src/client_cfg.h b/code/ryzom/client/src/client_cfg.h index 75c7698da..5fe0cfa1c 100644 --- a/code/ryzom/client/src/client_cfg.h +++ b/code/ryzom/client/src/client_cfg.h @@ -160,6 +160,7 @@ struct CClientConfig string CreateAccountURL; string EditAccountURL; string ConditionsTermsURL; + string NamingPolicyURL; string BetaAccountURL; string ForgetPwdURL; string FreeTrialURL; diff --git a/code/ryzom/client/src/login.cpp b/code/ryzom/client/src/login.cpp index 73f5e3fec..7d2e3173f 100644 --- a/code/ryzom/client/src/login.cpp +++ b/code/ryzom/client/src/login.cpp @@ -1886,6 +1886,10 @@ class CAHOpenURL : public IActionHandler { url = ClientCfg.ConditionsTermsURL; } + else if (sParams == "cfg_NamingPolicyURL") + { + url = ClientCfg.NamingPolicyURL; + } else { nlwarning("no URL found");