mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
Merge with hotfix
This commit is contained in:
commit
33bfd6c72a
3 changed files with 18 additions and 5 deletions
|
@ -467,8 +467,8 @@ CInterfaceManager::CInterfaceManager()
|
|||
|
||||
CGroupHTML::options.trustedDomains = ClientCfg.WebIgTrustedDomains;
|
||||
CGroupHTML::options.languageCode = ClientCfg.getHtmlLanguageCode();
|
||||
CGroupHTML::options.appName = "Ryzom";
|
||||
CGroupHTML::options.appVersion = getUserAgent();
|
||||
CGroupHTML::options.appName = getUserAgentName();
|
||||
CGroupHTML::options.appVersion = getUserAgentVersion();
|
||||
|
||||
NLGUI::CDBManager::getInstance()->resizeBanks( NB_CDB_BANKS );
|
||||
interfaceLinkUpdater = new CInterfaceLink::CInterfaceLinkUpdater();
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "game_share/ryzom_version.h"
|
||||
|
||||
#ifdef HAVE_REVISION_H
|
||||
#if defined(RYZOM_COMPATIBILITY_VERSION) && defined(HAVE_REVISION_H)
|
||||
#include "revision.h"
|
||||
#endif
|
||||
|
||||
|
@ -45,6 +45,16 @@
|
|||
#endif
|
||||
|
||||
std::string getUserAgent()
|
||||
{
|
||||
return getUserAgentName() + "/" + getUserAgentVersion();
|
||||
}
|
||||
|
||||
std::string getUserAgentName()
|
||||
{
|
||||
return "Ryzom";
|
||||
}
|
||||
|
||||
std::string getUserAgentVersion()
|
||||
{
|
||||
static std::string s_userAgent;
|
||||
|
||||
|
@ -52,8 +62,9 @@ std::string getUserAgent()
|
|||
{
|
||||
char buffer[256];
|
||||
|
||||
#ifdef REVISION
|
||||
sprintf(buffer, "%s.%s-%s-%s", RYZOM_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
||||
#if defined(REVISION) && defined(RYZOM_COMPATIBILITY_VERSION)
|
||||
// we don't need RYZOM_VERSION if we already have a numeric form a.b.c, we just need to append revision to it
|
||||
sprintf(buffer, "%s.%s-%s-%s", RYZOM_COMPATIBILITY_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
||||
#else
|
||||
sprintf(buffer, "%s-%s-%s", RYZOM_VERSION, RYZOM_SYSTEM, RYZOM_ARCH);
|
||||
#endif
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#define CL_USER_AGENT_H
|
||||
|
||||
std::string getUserAgent();
|
||||
std::string getUserAgentName();
|
||||
std::string getUserAgentVersion();
|
||||
|
||||
#endif // CL_USER_AGENT_H
|
||||
|
||||
|
|
Loading…
Reference in a new issue