mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
Changed: Moved Ryzom detailed version in client
This commit is contained in:
parent
b35bc728d3
commit
8a68c5e54f
2 changed files with 33 additions and 34 deletions
|
@ -29,10 +29,6 @@ extern "C"
|
||||||
#include "nel/gui/group_html.h"
|
#include "nel/gui/group_html.h"
|
||||||
#include "nel/gui/libwww_nel_stream.h"
|
#include "nel/gui/libwww_nel_stream.h"
|
||||||
|
|
||||||
#ifdef HAVE_REVISION_H
|
|
||||||
#include "revision.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
|
|
||||||
// The HText structure for libwww
|
// The HText structure for libwww
|
||||||
|
@ -554,35 +550,6 @@ namespace NLGUI
|
||||||
HTTrace_setCallback(NelTracer);
|
HTTrace_setCallback(NelTracer);
|
||||||
|
|
||||||
/* Initiate libwww */
|
/* Initiate libwww */
|
||||||
|
|
||||||
#if defined(HAVE_X86_64)
|
|
||||||
#define RYZOM_ARCH "x64"
|
|
||||||
#elif defined(HAVE_X86)
|
|
||||||
#define RYZOM_ARCH "x86"
|
|
||||||
#elif defined(HAVE_ARM)
|
|
||||||
#define RYZOM_ARCH "arm"
|
|
||||||
#else
|
|
||||||
#define RYZOM_ARCH "unknow"
|
|
||||||
#endif
|
|
||||||
#if defined(NL_OS_WINDOWS)
|
|
||||||
#define RYZOM_SYSTEM "windows"
|
|
||||||
#elif defined(NL_OS_MAC)
|
|
||||||
#define RYZOM_SYSTEM "mac"
|
|
||||||
#elif defined(NL_OS_UNIX)
|
|
||||||
#define RYZOM_SYSTEM "unix"
|
|
||||||
#else
|
|
||||||
#define RYZOM_SYSTEM "unkown"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
char buffer[256];
|
|
||||||
#ifdef REVISION
|
|
||||||
sprintf(buffer, "%s.%s-%s-%s", RYZOM_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
||||||
#else
|
|
||||||
sprintf(buffer, "%s-%s-%s", RYZOM_VERSION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
|
|
||||||
HTLib_setAppName( CGroupHTML::options.appName.c_str() );
|
HTLib_setAppName( CGroupHTML::options.appName.c_str() );
|
||||||
HTLib_setAppVersion( CGroupHTML::options.appVersion.c_str() );
|
HTLib_setAppVersion( CGroupHTML::options.appVersion.c_str() );
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,29 @@ using namespace NLGUI;
|
||||||
|
|
||||||
#include "../global.h"
|
#include "../global.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_REVISION_H
|
||||||
|
#include "revision.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_X86_64)
|
||||||
|
#define RYZOM_ARCH "x64"
|
||||||
|
#elif defined(HAVE_X86)
|
||||||
|
#define RYZOM_ARCH "x86"
|
||||||
|
#elif defined(HAVE_ARM)
|
||||||
|
#define RYZOM_ARCH "arm"
|
||||||
|
#else
|
||||||
|
#define RYZOM_ARCH "unknow"
|
||||||
|
#endif
|
||||||
|
#if defined(NL_OS_WINDOWS)
|
||||||
|
#define RYZOM_SYSTEM "windows"
|
||||||
|
#elif defined(NL_OS_MAC)
|
||||||
|
#define RYZOM_SYSTEM "mac"
|
||||||
|
#elif defined(NL_OS_UNIX)
|
||||||
|
#define RYZOM_SYSTEM "unix"
|
||||||
|
#else
|
||||||
|
#define RYZOM_SYSTEM "unkown"
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
|
|
||||||
namespace NLGUI
|
namespace NLGUI
|
||||||
|
@ -465,10 +488,19 @@ CInterfaceManager::CInterfaceManager()
|
||||||
CViewRenderer::getInstance();
|
CViewRenderer::getInstance();
|
||||||
CViewTextID::setTextProvider( &SMTextProvider );
|
CViewTextID::setTextProvider( &SMTextProvider );
|
||||||
CViewTextFormated::setFormatter( &RyzomTextFormatter );
|
CViewTextFormated::setFormatter( &RyzomTextFormatter );
|
||||||
|
|
||||||
|
char buffer[256];
|
||||||
|
|
||||||
|
#ifdef REVISION
|
||||||
|
sprintf(buffer, "%s.%s-%s-%s", RYZOM_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
||||||
|
#else
|
||||||
|
sprintf(buffer, "%s-%s-%s", RYZOM_VERSION, RYZOM_SYSTEM, RYZOM_ARCH);
|
||||||
|
#endif
|
||||||
|
|
||||||
CGroupHTML::options.trustedDomains = ClientCfg.WebIgTrustedDomains;
|
CGroupHTML::options.trustedDomains = ClientCfg.WebIgTrustedDomains;
|
||||||
CGroupHTML::options.languageCode = ClientCfg.getHtmlLanguageCode();
|
CGroupHTML::options.languageCode = ClientCfg.getHtmlLanguageCode();
|
||||||
CGroupHTML::options.appName = "Ryzom";
|
CGroupHTML::options.appName = "Ryzom";
|
||||||
CGroupHTML::options.appVersion = RYZOM_VERSION;
|
CGroupHTML::options.appVersion = buffer;
|
||||||
|
|
||||||
NLGUI::CDBManager::getInstance()->resizeBanks( NB_CDB_BANKS );
|
NLGUI::CDBManager::getInstance()->resizeBanks( NB_CDB_BANKS );
|
||||||
interfaceLinkUpdater = new CInterfaceLink::CInterfaceLinkUpdater();
|
interfaceLinkUpdater = new CInterfaceLink::CInterfaceLinkUpdater();
|
||||||
|
|
Loading…
Reference in a new issue