mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 00:06:16 +00:00
Changed: Moved Ryzom detailed version in client
This commit is contained in:
parent
cc09e4ba09
commit
61afe31515
2 changed files with 33 additions and 34 deletions
|
@ -29,10 +29,6 @@ extern "C"
|
|||
#include "nel/gui/group_html.h"
|
||||
#include "nel/gui/libwww_nel_stream.h"
|
||||
|
||||
#ifdef HAVE_REVISION_H
|
||||
#include "revision.h"
|
||||
#endif
|
||||
|
||||
using namespace NLMISC;
|
||||
|
||||
// The HText structure for libwww
|
||||
|
@ -554,35 +550,6 @@ namespace NLGUI
|
|||
HTTrace_setCallback(NelTracer);
|
||||
|
||||
/* 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_setAppVersion( CGroupHTML::options.appVersion.c_str() );
|
||||
|
||||
|
|
|
@ -132,6 +132,29 @@ using namespace NLGUI;
|
|||
|
||||
#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;
|
||||
|
||||
namespace NLGUI
|
||||
|
@ -465,10 +488,19 @@ CInterfaceManager::CInterfaceManager()
|
|||
CViewRenderer::getInstance();
|
||||
CViewTextID::setTextProvider( &SMTextProvider );
|
||||
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.languageCode = ClientCfg.getHtmlLanguageCode();
|
||||
CGroupHTML::options.appName = "Ryzom";
|
||||
CGroupHTML::options.appVersion = RYZOM_VERSION;
|
||||
CGroupHTML::options.appVersion = buffer;
|
||||
|
||||
NLGUI::CDBManager::getInstance()->resizeBanks( NB_CDB_BANKS );
|
||||
interfaceLinkUpdater = new CInterfaceLink::CInterfaceLinkUpdater();
|
||||
|
|
Loading…
Reference in a new issue