aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-14 13:51:33 -0700
committerJacek Antonelli2010-06-19 02:40:53 -0500
commitb33c37c28d94e45e67c9176e420d6e386970f6dd (patch)
tree2909d4af013c7a49fb683331e9f2dc5b31dea0c7 /linden/indra/newview/llappviewer.cpp
parentupdate install.xml to fetch fixed glib-2.20.5 package for Linux64. (diff)
downloadmeta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.zip
meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.gz
meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.bz2
meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.xz
Set the imprudence viewer version in xml
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r--linden/indra/newview/llappviewer.cpp69
1 files changed, 36 insertions, 33 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index e5a915a..22b18ce 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -35,7 +35,6 @@
35#include "llappviewer.h" 35#include "llappviewer.h"
36#include "llprimitive.h" 36#include "llprimitive.h"
37 37
38#include "llversionviewer.h"
39#include "llfeaturemanager.h" 38#include "llfeaturemanager.h"
40#include "lluictrlfactory.h" 39#include "lluictrlfactory.h"
41#include "lltexteditor.h" 40#include "lltexteditor.h"
@@ -151,6 +150,7 @@
151#include "llflexibleobject.h" 150#include "llflexibleobject.h"
152#include "llvosurfacepatch.h" 151#include "llvosurfacepatch.h"
153#include "llslider.h" 152#include "llslider.h"
153#include "viewerversion.h"
154 154
155// includes for idle() idleShutdown() 155// includes for idle() idleShutdown()
156#include "llviewercontrol.h" 156#include "llviewercontrol.h"
@@ -577,7 +577,7 @@ bool LLAppViewer::init()
577 577
578 // Need to do this initialization before we do anything else, since anything 578 // Need to do this initialization before we do anything else, since anything
579 // that touches files should really go through the lldir API 579 // that touches files should really go through the lldir API
580 gDirUtilp->initAppDirs(IMP_VIEWER_NAME); 580 gDirUtilp->initAppDirs(ViewerVersion::getImpViewerName());
581 // set skin search path to default, will be overridden later 581 // set skin search path to default, will be overridden later
582 // this allows simple skinned file lookups to work 582 // this allows simple skinned file lookups to work
583 gDirUtilp->setSkinFolder("default"); 583 gDirUtilp->setSkinFolder("default");
@@ -601,15 +601,15 @@ bool LLAppViewer::init()
601 // Build a string representing the current version number. 601 // Build a string representing the current version number.
602 gCurrentVersion = llformat("%s %d.%d.%d %s / %s %d.%d.%d.%d", 602 gCurrentVersion = llformat("%s %d.%d.%d %s / %s %d.%d.%d.%d",
603 gSavedSettings.getString("VersionChannelName").c_str(), 603 gSavedSettings.getString("VersionChannelName").c_str(),
604 IMP_VERSION_MAJOR, 604 ViewerVersion::getImpMajorVersion(),
605 IMP_VERSION_MINOR, 605 ViewerVersion::getImpMinorVersion(),
606 IMP_VERSION_PATCH, 606 ViewerVersion::getImpPatchVersion(),
607 IMP_VERSION_TEST, 607 ViewerVersion::getImpTestVersion().c_str(),
608 LL_VIEWER_NAME, 608 ViewerVersion::getLLViewerName().c_str(),
609 LL_VERSION_MAJOR, 609 ViewerVersion::getLLMajorVersion(),
610 LL_VERSION_MINOR, 610 ViewerVersion::getLLMinorVersion(),
611 LL_VERSION_PATCH, 611 ViewerVersion::getLLPatchVersion(),
612 LL_VERSION_BUILD ); 612 ViewerVersion::getLLBuildVersion() );
613 613
614 ////////////////////////////////////////////////////////////////////////////// 614 //////////////////////////////////////////////////////////////////////////////
615 ////////////////////////////////////////////////////////////////////////////// 615 //////////////////////////////////////////////////////////////////////////////
@@ -1685,6 +1685,9 @@ std::string LLAppViewer::getSettingsFilename(const std::string& location_key,
1685 1685
1686bool LLAppViewer::initConfiguration() 1686bool LLAppViewer::initConfiguration()
1687{ 1687{
1688 // init Imprudence version - MC
1689 ViewerVersion::initViewerVersion();
1690
1688 //Set up internal pointers 1691 //Set up internal pointers
1689 gSettings[sGlobalSettingsName] = &gSavedSettings; 1692 gSettings[sGlobalSettingsName] = &gSavedSettings;
1690 gSettings[sPerAccountSettingsName] = &gSavedPerAccountSettings; 1693 gSettings[sPerAccountSettingsName] = &gSavedPerAccountSettings;
@@ -1732,7 +1735,7 @@ bool LLAppViewer::initConfiguration()
1732 // gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFilename("Default", "Global"))); 1735 // gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFilename("Default", "Global")));
1733 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "settings_imprudence.xml")); 1736 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "settings_imprudence.xml"));
1734 1737
1735 gSavedSettings.setString("VersionChannelName", IMP_VIEWER_NAME); 1738 gSavedSettings.setString("VersionChannelName", ViewerVersion::getImpViewerName());
1736 1739
1737 //*FIX:Mani - Set default to disabling watchdog mainloop 1740 //*FIX:Mani - Set default to disabling watchdog mainloop
1738 // timeout for mac and linux. There is no call stack info 1741 // timeout for mac and linux. There is no call stack info
@@ -1970,7 +1973,7 @@ bool LLAppViewer::initConfiguration()
1970 mYieldTime = gSavedSettings.getS32("YieldTime"); 1973 mYieldTime = gSavedSettings.getS32("YieldTime");
1971 1974
1972 // XUI:translate 1975 // XUI:translate
1973 gSecondLife = IMP_VIEWER_NAME; 1976 gSecondLife = ViewerVersion::getImpViewerName();
1974 1977
1975 // Read skin/branding settings if specified. 1978 // Read skin/branding settings if specified.
1976 //if (! gDirUtilp->getSkinDir().empty() ) 1979 //if (! gDirUtilp->getSkinDir().empty() )
@@ -2339,14 +2342,14 @@ void LLAppViewer::writeSystemInfo()
2339 gDebugInfo["SLLog"] = LLError::logFileName(); 2342 gDebugInfo["SLLog"] = LLError::logFileName();
2340 2343
2341 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2344 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2342 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR; 2345 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = ViewerVersion::getImpMajorVersion();
2343 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR; 2346 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = ViewerVersion::getImpMinorVersion();
2344 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH; 2347 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = ViewerVersion::getImpPatchVersion();
2345 gDebugInfo["ClientInfo"]["ImpTestVersion"] = IMP_VERSION_TEST; 2348 gDebugInfo["ClientInfo"]["ImpTestVersion"] = ViewerVersion::getImpTestVersion();
2346 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2349 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getLLMajorVersion();
2347 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2350 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getLLMinorVersion();
2348 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2351 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getLLPatchVersion();
2349 gDebugInfo["ClientInfo"]["BuildVersion"] = LL_VERSION_BUILD; 2352 gDebugInfo["ClientInfo"]["BuildVersion"] = ViewerVersion::getLLBuildVersion();
2350 2353
2351 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile(); 2354 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile();
2352 2355
@@ -2433,14 +2436,14 @@ void LLAppViewer::handleViewerCrash()
2433 //to check against no matter what 2436 //to check against no matter what
2434 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2437 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2435 2438
2436 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR; 2439 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = ViewerVersion::getImpMajorVersion();
2437 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR; 2440 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = ViewerVersion::getImpMinorVersion();
2438 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH; 2441 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = ViewerVersion::getImpPatchVersion();
2439 gDebugInfo["ClientInfo"]["ImpTestVersion"] = IMP_VERSION_TEST; 2442 gDebugInfo["ClientInfo"]["ImpTestVersion"] = ViewerVersion::getImpTestVersion();
2440 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2443 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getLLMajorVersion();
2441 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2444 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getLLMinorVersion();
2442 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2445 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getLLPatchVersion();
2443 gDebugInfo["ClientInfo"]["BuildVersion"] = LL_VERSION_BUILD; 2446 gDebugInfo["ClientInfo"]["BuildVersion"] = ViewerVersion::getLLBuildVersion();
2444 2447
2445 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); 2448 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
2446 if ( parcel && parcel->getMusicURL()[0]) 2449 if ( parcel && parcel->getMusicURL()[0])
@@ -4115,10 +4118,10 @@ void LLAppViewer::handleLoginComplete()
4115 // Store some data to DebugInfo in case of a freeze. 4118 // Store some data to DebugInfo in case of a freeze.
4116 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 4119 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
4117 4120
4118 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 4121 gDebugInfo["ClientInfo"]["MajorVersion"] = ViewerVersion::getLLMajorVersion();
4119 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 4122 gDebugInfo["ClientInfo"]["MinorVersion"] = ViewerVersion::getLLMinorVersion();
4120 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 4123 gDebugInfo["ClientInfo"]["PatchVersion"] = ViewerVersion::getLLPatchVersion();
4121 gDebugInfo["ClientInfo"]["BuildVersion"] = LL_VERSION_BUILD; 4124 gDebugInfo["ClientInfo"]["BuildVersion"] = ViewerVersion::getLLBuildVersion();
4122 gDebugInfo["SettingsFilename"] = gSavedSettings.getString("ClientSettingsFile"); 4125 gDebugInfo["SettingsFilename"] = gSavedSettings.getString("ClientSettingsFile");
4123 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile(); 4126 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile();
4124 gDebugInfo["ViewerExePath"] = gDirUtilp->getExecutablePathAndName(); 4127 gDebugInfo["ViewerExePath"] = gDirUtilp->getExecutablePathAndName();