|
|
|
@ -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();
|
|
|
|
|