diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 18b65cc..d76b722 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -859,7 +859,7 @@ bool LLAppViewer::init() | |||
859 | minSpecs += "\n"; | 859 | minSpecs += "\n"; |
860 | unsupported = true; | 860 | unsupported = true; |
861 | } | 861 | } |
862 | if(gSysCPU.getMhz() < minCPU) | 862 | if(gSysCPU.getMHz() < minCPU) |
863 | { | 863 | { |
864 | minSpecs += LLNotifications::instance().getGlobalString("UnsupportedCPU"); | 864 | minSpecs += LLNotifications::instance().getGlobalString("UnsupportedCPU"); |
865 | minSpecs += "\n"; | 865 | minSpecs += "\n"; |
@@ -1267,6 +1267,19 @@ bool LLAppViewer::cleanup() | |||
1267 | 1267 | ||
1268 | LLCalc::cleanUp(); | 1268 | LLCalc::cleanUp(); |
1269 | 1269 | ||
1270 | // Quitting with "Remember Password" turned off should always stomp your | ||
1271 | // saved password, whether or not you successfully logged in. JC | ||
1272 | if (!gSavedSettings.getBOOL("RememberPassword")) | ||
1273 | { | ||
1274 | gHippoGridManager->getConnectedGrid()->setPassword(""); | ||
1275 | |||
1276 | // kill old password.dat file if it exists. We do this to keep setting compatibility with older versions -- MC | ||
1277 | std::string filepath = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "password.dat"); | ||
1278 | LLFile::remove(filepath); | ||
1279 | } | ||
1280 | |||
1281 | gHippoGridManager->saveFile(); | ||
1282 | |||
1270 | delete gHippoGridManager; | 1283 | delete gHippoGridManager; |
1271 | gHippoGridManager = NULL; | 1284 | gHippoGridManager = NULL; |
1272 | 1285 | ||
@@ -1418,13 +1431,6 @@ bool LLAppViewer::cleanup() | |||
1418 | // | 1431 | // |
1419 | LLVFile::cleanupClass(); | 1432 | LLVFile::cleanupClass(); |
1420 | llinfos << "VFS cleaned up" << llendflush; | 1433 | llinfos << "VFS cleaned up" << llendflush; |
1421 | |||
1422 | // Quitting with "Remember Password" turned off should always stomp your | ||
1423 | // saved password, whether or not you successfully logged in. JC | ||
1424 | if (!gSavedSettings.getBOOL("RememberPassword")) | ||
1425 | { | ||
1426 | LLStartUp::deletePasswordFromDisk(); | ||
1427 | } | ||
1428 | 1434 | ||
1429 | // Store the time of our current logoff | 1435 | // Store the time of our current logoff |
1430 | gSavedPerAccountSettings.setU32("LastLogoff", time_corrected()); | 1436 | gSavedPerAccountSettings.setU32("LastLogoff", time_corrected()); |
@@ -2467,7 +2473,7 @@ void LLAppViewer::writeSystemInfo() | |||
2467 | 2473 | ||
2468 | gDebugInfo["CPUInfo"]["CPUString"] = gSysCPU.getCPUString(); | 2474 | gDebugInfo["CPUInfo"]["CPUString"] = gSysCPU.getCPUString(); |
2469 | gDebugInfo["CPUInfo"]["CPUFamily"] = gSysCPU.getFamily(); | 2475 | gDebugInfo["CPUInfo"]["CPUFamily"] = gSysCPU.getFamily(); |
2470 | gDebugInfo["CPUInfo"]["CPUMhz"] = gSysCPU.getMhz(); | 2476 | gDebugInfo["CPUInfo"]["CPUMhz"] = gSysCPU.getMHz(); |
2471 | gDebugInfo["CPUInfo"]["CPUAltivec"] = gSysCPU.hasAltivec(); | 2477 | gDebugInfo["CPUInfo"]["CPUAltivec"] = gSysCPU.hasAltivec(); |
2472 | gDebugInfo["CPUInfo"]["CPUSSE"] = gSysCPU.hasSSE(); | 2478 | gDebugInfo["CPUInfo"]["CPUSSE"] = gSysCPU.hasSSE(); |
2473 | gDebugInfo["CPUInfo"]["CPUSSE2"] = gSysCPU.hasSSE2(); | 2479 | gDebugInfo["CPUInfo"]["CPUSSE2"] = gSysCPU.hasSSE2(); |
@@ -3261,10 +3267,10 @@ void LLAppViewer::badNetworkHandler() | |||
3261 | LLAppViewer::handleViewerCrash(); | 3267 | LLAppViewer::handleViewerCrash(); |
3262 | 3268 | ||
3263 | std::string grid_support_msg = ""; | 3269 | std::string grid_support_msg = ""; |
3264 | if (!gHippoGridManager->getCurrentGrid()->getSupportUrl().empty()) | 3270 | if (!gHippoGridManager->getCurrentGrid()->getSupportURL().empty()) |
3265 | { | 3271 | { |
3266 | grid_support_msg = "\n\nOr visit the gird support page at: \n " | 3272 | grid_support_msg = "\n\nOr visit the gird support page at: \n " |
3267 | + gHippoGridManager->getCurrentGrid()->getSupportUrl(); | 3273 | + gHippoGridManager->getCurrentGrid()->getSupportURL(); |
3268 | } | 3274 | } |
3269 | std::ostringstream message; | 3275 | std::ostringstream message; |
3270 | message << | 3276 | message << |
@@ -4196,6 +4202,11 @@ void LLAppViewer::disconnectViewer() | |||
4196 | 4202 | ||
4197 | saveNameCache(); | 4203 | saveNameCache(); |
4198 | 4204 | ||
4205 | { | ||
4206 | std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "cloud.xml"); | ||
4207 | LLVOAvatar::saveCloud(filename, LLVOAvatar::sCloud); | ||
4208 | } | ||
4209 | |||
4199 | // close inventory interface, close all windows | 4210 | // close inventory interface, close all windows |
4200 | LLInventoryView::cleanup(); | 4211 | LLInventoryView::cleanup(); |
4201 | // Don't cleanup menus on disconnect in order to avoid crashes -- MC | 4212 | // Don't cleanup menus on disconnect in order to avoid crashes -- MC |