aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:57 -0500
committerJacek Antonelli2008-08-15 23:45:57 -0500
commit7e3007b63521c4b0c5bbad1c3964a557fc526ce2 (patch)
treeab231ed574db618873d6ebb25293cf7c0cb6d26e /linden/indra/newview/llappviewer.cpp
parentSecond Life viewer sources 1.20.10 (diff)
downloadmeta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.zip
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.gz
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.bz2
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.xz
Second Life viewer sources 1.20.11
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r--linden/indra/newview/llappviewer.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 96d96dc..1ec2c14 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -530,7 +530,7 @@ void LLAppViewer::initGridChoice()
530 LLString custom_server = gSavedSettings.getString("CustomServer"); 530 LLString custom_server = gSavedSettings.getString("CustomServer");
531 LLViewerLogin::getInstance()->setGridChoice(custom_server); 531 LLViewerLogin::getInstance()->setGridChoice(custom_server);
532 } 532 }
533 else if(server != 0) 533 else if(server != (S32)GRID_INFO_NONE)
534 { 534 {
535 LLViewerLogin::getInstance()->setGridChoice((EGridInfo)server); 535 LLViewerLogin::getInstance()->setGridChoice((EGridInfo)server);
536 } 536 }
@@ -1139,12 +1139,12 @@ bool LLAppViewer::cleanup()
1139 1139
1140 llinfos << "Cleaning Up" << llendflush; 1140 llinfos << "Cleaning Up" << llendflush;
1141 1141
1142 LLKeyframeDataCache::clear();
1143
1144 // Must clean up texture references before viewer window is destroyed. 1142 // Must clean up texture references before viewer window is destroyed.
1145 LLHUDObject::cleanupHUDObjects(); 1143 LLHUDObject::cleanupHUDObjects();
1146 llinfos << "HUD Objects cleaned up" << llendflush; 1144 llinfos << "HUD Objects cleaned up" << llendflush;
1147 1145
1146 LLKeyframeDataCache::clear();
1147
1148 // End TransferManager before deleting systems it depends on (Audio, VFS, AssetStorage) 1148 // End TransferManager before deleting systems it depends on (Audio, VFS, AssetStorage)
1149#if 0 // this seems to get us stuck in an infinite loop... 1149#if 0 // this seems to get us stuck in an infinite loop...
1150 gTransferManager.cleanup(); 1150 gTransferManager.cleanup();
@@ -1322,7 +1322,7 @@ bool LLAppViewer::cleanup()
1322 1322
1323 removeMarkerFile(); // Any crashes from here on we'll just have to ignore 1323 removeMarkerFile(); // Any crashes from here on we'll just have to ignore
1324 1324
1325 closeDebug(); 1325 writeDebugInfo();
1326 1326
1327 // Let threads finish 1327 // Let threads finish
1328 LLTimer idleTimer; 1328 LLTimer idleTimer;
@@ -2139,7 +2139,7 @@ bool LLAppViewer::initWindow()
2139 return true; 2139 return true;
2140} 2140}
2141 2141
2142void LLAppViewer::closeDebug() 2142void LLAppViewer::writeDebugInfo()
2143{ 2143{
2144 std::string debug_filename = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"debug_info.log"); 2144 std::string debug_filename = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"debug_info.log");
2145 llinfos << "Opening debug file " << debug_filename << llendl; 2145 llinfos << "Opening debug file " << debug_filename << llendl;
@@ -2219,6 +2219,8 @@ void LLAppViewer::writeSystemInfo()
2219 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2219 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH;
2220 gDebugInfo["ClientInfo"]["BuildVersion"] = LL_VERSION_BUILD; 2220 gDebugInfo["ClientInfo"]["BuildVersion"] = LL_VERSION_BUILD;
2221 2221
2222 gDebugInfo["CAFilename"] = gDirUtilp->getCAFile();
2223
2222 gDebugInfo["CPUInfo"]["CPUString"] = gSysCPU.getCPUString(); 2224 gDebugInfo["CPUInfo"]["CPUString"] = gSysCPU.getCPUString();
2223 gDebugInfo["CPUInfo"]["CPUFamily"] = gSysCPU.getFamily(); 2225 gDebugInfo["CPUInfo"]["CPUFamily"] = gSysCPU.getFamily();
2224 gDebugInfo["CPUInfo"]["CPUMhz"] = gSysCPU.getMhz(); 2226 gDebugInfo["CPUInfo"]["CPUMhz"] = gSysCPU.getMhz();
@@ -2257,6 +2259,8 @@ void LLAppViewer::writeSystemInfo()
2257 LL_INFOS("SystemInfo") << "Memory info:\n" << gSysMemory << LL_ENDL; 2259 LL_INFOS("SystemInfo") << "Memory info:\n" << gSysMemory << LL_ENDL;
2258 LL_INFOS("SystemInfo") << "OS: " << getOSInfo().getOSStringSimple() << LL_ENDL; 2260 LL_INFOS("SystemInfo") << "OS: " << getOSInfo().getOSStringSimple() << LL_ENDL;
2259 LL_INFOS("SystemInfo") << "OS info: " << getOSInfo() << LL_ENDL; 2261 LL_INFOS("SystemInfo") << "OS info: " << getOSInfo() << LL_ENDL;
2262
2263 writeDebugInfo(); // Save out debug_info.log early, in case of crash.
2260} 2264}
2261 2265
2262void LLAppViewer::handleSyncViewerCrash() 2266void LLAppViewer::handleSyncViewerCrash()
@@ -2376,7 +2380,7 @@ void LLAppViewer::handleViewerCrash()
2376 LLWorld::getInstance()->getInfo(gDebugInfo); 2380 LLWorld::getInstance()->getInfo(gDebugInfo);
2377 2381
2378 // Close the debug file 2382 // Close the debug file
2379 pApp->closeDebug(); 2383 pApp->writeDebugInfo();
2380 2384
2381 LLError::logToFile(""); 2385 LLError::logToFile("");
2382 2386