aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewer.cpp55
1 files changed, 24 insertions, 31 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index aa3de97..aeb52a2 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -154,7 +154,7 @@
154#include "llflexibleobject.h" 154#include "llflexibleobject.h"
155#include "llvosurfacepatch.h" 155#include "llvosurfacepatch.h"
156#include "llslider.h" 156#include "llslider.h"
157#include "viewerversion.h" 157#include "viewerinfo.h"
158 158
159// includes for idle() idleShutdown() 159// includes for idle() idleShutdown()
160#include "floaterao.h" 160#include "floaterao.h"
@@ -597,7 +597,7 @@ bool LLAppViewer::init()
597 597
598 // Need to do this initialization before we do anything else, since anything 598 // Need to do this initialization before we do anything else, since anything
599 // that touches files should really go through the lldir API 599 // that touches files should really go through the lldir API
600 gDirUtilp->initAppDirs(ViewerVersion::getImpViewerName()); 600 gDirUtilp->initAppDirs(ViewerInfo::viewerName());
601 // set skin search path to default, will be overridden later 601 // set skin search path to default, will be overridden later
602 // this allows simple skinned file lookups to work 602 // this allows simple skinned file lookups to work
603 gDirUtilp->setSkinFolder("default"); 603 gDirUtilp->setSkinFolder("default");
@@ -619,15 +619,8 @@ bool LLAppViewer::init()
619 writeSystemInfo(); 619 writeSystemInfo();
620 620
621 621
622 // Build a string representing the current version number. 622 // String representing the current version name/number.
623 gCurrentVersion = llformat( 623 gCurrentVersion = ViewerInfo::terseInfo();
624 "%s %d.%d.%d.%d",
625 gSavedSettings.getString("VersionChannelName").c_str(),
626 ViewerVersion::getImpMajorVersion(),
627 ViewerVersion::getImpMinorVersion(),
628 ViewerVersion::getImpPatchVersion(),
629 0 // our 'build number'
630 );
631 624
632 ////////////////////////////////////////////////////////////////////////////// 625 //////////////////////////////////////////////////////////////////////////////
633 ////////////////////////////////////////////////////////////////////////////// 626 //////////////////////////////////////////////////////////////////////////////
@@ -1796,9 +1789,6 @@ std::string LLAppViewer::getSettingsFilename(const std::string& location_key,
1796 1789
1797bool LLAppViewer::initConfiguration() 1790bool LLAppViewer::initConfiguration()
1798{ 1791{
1799 // init Imprudence version - MC
1800 ViewerVersion::initViewerVersion();
1801
1802 //Set up internal pointers 1792 //Set up internal pointers
1803 gSettings[sGlobalSettingsName] = &gSavedSettings; 1793 gSettings[sGlobalSettingsName] = &gSavedSettings;
1804 gSettings[sPerAccountSettingsName] = &gSavedPerAccountSettings; 1794 gSettings[sPerAccountSettingsName] = &gSavedPerAccountSettings;
@@ -1846,7 +1836,7 @@ bool LLAppViewer::initConfiguration()
1846 // gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFilename("Default", "Global"))); 1836 // gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFilename("Default", "Global")));
1847 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "settings_imprudence.xml")); 1837 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "settings_imprudence.xml"));
1848 1838
1849 gSavedSettings.setString("VersionChannelName", ViewerVersion::getImpViewerName()); 1839 gSavedSettings.setString("VersionChannelName", ViewerInfo::nameWithVariant());
1850 1840
1851 //*FIX:Mani - Set default to disabling watchdog mainloop 1841 //*FIX:Mani - Set default to disabling watchdog mainloop
1852 // timeout for mac and linux. There is no call stack info 1842 // timeout for mac and linux. There is no call stack info
@@ -2092,7 +2082,7 @@ bool LLAppViewer::initConfiguration()
2092 mYieldTime = gSavedSettings.getS32("YieldTime"); 2082 mYieldTime = gSavedSettings.getS32("YieldTime");
2093 2083
2094 // XUI:translate 2084 // XUI:translate
2095 gSecondLife = ViewerVersion::getImpViewerName(); 2085 gSecondLife = ViewerInfo::viewerName();
2096 2086
2097 // Read skin/branding settings if specified. 2087 // Read skin/branding settings if specified.
2098 //if (! gDirUtilp->getSkinDir().empty() ) 2088 //if (! gDirUtilp->getSkinDir().empty() )
@@ -2464,11 +2454,12 @@ void LLAppViewer::writeSystemInfo()
2464{ 2454{
2465 gDebugInfo["SLLog"] = LLError::logFileName(); 2455 gDebugInfo["SLLog"] = LLError::logFileName();
2466 2456
2467 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2457 gDebugInfo["ClientInfo"]["Name"] = ViewerInfo::viewerName();
2468 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getImpMajorVersion(); 2458 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerInfo::versionMajor();
2469 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getImpMinorVersion(); 2459 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerInfo::versionMinor();
2470 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getImpPatchVersion(); 2460 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerInfo::versionPatch();
2471 gDebugInfo["ClientInfo"]["BuildVersion"] = 0; 2461 gDebugInfo["ClientInfo"]["ReleaseVersion"] = ViewerInfo::versionRelease();
2462 gDebugInfo["ClientInfo"]["ExtraVersion"] = ViewerInfo::versionExtra();
2472 2463
2473 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile(); 2464 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile();
2474 2465
@@ -2553,11 +2544,12 @@ void LLAppViewer::handleViewerCrash()
2553 2544
2554 //We already do this in writeSystemInfo(), but we do it again here to make /sure/ we have a version 2545 //We already do this in writeSystemInfo(), but we do it again here to make /sure/ we have a version
2555 //to check against no matter what 2546 //to check against no matter what
2556 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2547 gDebugInfo["ClientInfo"]["Name"] = ViewerInfo::viewerName();
2557 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getImpMajorVersion(); 2548 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerInfo::versionMajor();
2558 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getImpMinorVersion(); 2549 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerInfo::versionMinor();
2559 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getImpPatchVersion(); 2550 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerInfo::versionPatch();
2560 gDebugInfo["ClientInfo"]["BuildVersion"] = 0; 2551 gDebugInfo["ClientInfo"]["ReleaseVersion"] = ViewerInfo::versionRelease();
2552 gDebugInfo["ClientInfo"]["ExtraVersion"] = ViewerInfo::versionExtra();
2561 2553
2562 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); 2554 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
2563 if ( parcel && parcel->getMusicURL()[0]) 2555 if ( parcel && parcel->getMusicURL()[0])
@@ -4333,11 +4325,12 @@ void LLAppViewer::handleLoginComplete()
4333 initMainloopTimeout("Mainloop Init"); 4325 initMainloopTimeout("Mainloop Init");
4334 4326
4335 // Store some data to DebugInfo in case of a freeze. 4327 // Store some data to DebugInfo in case of a freeze.
4336 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 4328 gDebugInfo["ClientInfo"]["Name"] = ViewerInfo::viewerName();
4337 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getImpMajorVersion(); 4329 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerInfo::versionMajor();
4338 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getImpMinorVersion(); 4330 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerInfo::versionMinor();
4339 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getImpPatchVersion(); 4331 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerInfo::versionPatch();
4340 gDebugInfo["ClientInfo"]["BuildVersion"] = 0; 4332 gDebugInfo["ClientInfo"]["ReleaseVersion"] = ViewerInfo::versionRelease();
4333 gDebugInfo["ClientInfo"]["ExtraVersion"] = ViewerInfo::versionExtra();
4341 4334
4342 gDebugInfo["SettingsFilename"] = gSavedSettings.getString("ClientSettingsFile"); 4335 gDebugInfo["SettingsFilename"] = gSavedSettings.getString("ClientSettingsFile");
4343 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile(); 4336 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile();