Changed: copy of changeset #ba5a7ec85045 (dead branch)

--HG--
branch : develop
This commit is contained in:
Inky 2019-06-25 23:35:52 +03:00
parent f17aeff6f2
commit 3da8dcbdac

View file

@ -61,6 +61,7 @@
#include "game_share/bg_downloader_msg.h" #include "game_share/bg_downloader_msg.h"
#include "misc.h" #include "misc.h"
#include "user_agent.h"
void ConnectToShard(); void ConnectToShard();
@ -783,6 +784,15 @@ void initLoginScreen()
ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0); ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0);
// version
std::string ext;
if (ClientApp.find("ryzom_") != ucstring::npos)
ext = " (" + ClientApp.substr(6) + ")";
CViewText *pV = dynamic_cast<CViewText*>(CWidgetManager::getInstance()->getElementFromId("ui:login:checkpass:content:ver_value"));
if (pV)
pV->setHardText(getDisplayVersion() + (ext.empty() ? "" : ext));
// give priority to login specified as argument // give priority to login specified as argument
string l = !LoginLogin.empty() ? LoginLogin:ClientCfg.LastLogin; string l = !LoginLogin.empty() ? LoginLogin:ClientCfg.LastLogin;