aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewer.cpp42
1 files changed, 25 insertions, 17 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index f1b2e32..7262759 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -293,10 +293,10 @@ BOOL gLogoutInProgress = FALSE;
293// Internal globals... that should be removed. 293// Internal globals... that should be removed.
294static std::string gArgs; 294static std::string gArgs;
295 295
296const std::string MARKER_FILE_NAME("SecondLife.exec_marker"); 296const std::string MARKER_FILE_NAME("Imprudence.exec_marker");
297const std::string ERROR_MARKER_FILE_NAME("SecondLife.error_marker"); 297const std::string ERROR_MARKER_FILE_NAME("Imprudence.error_marker");
298const std::string LLERROR_MARKER_FILE_NAME("SecondLife.llerror_marker"); 298const std::string LLERROR_MARKER_FILE_NAME("Imprudence.llerror_marker");
299const std::string LOGOUT_MARKER_FILE_NAME("SecondLife.logout_marker"); 299const std::string LOGOUT_MARKER_FILE_NAME("Imprudence.logout_marker");
300static BOOL gDoDisconnect = FALSE; 300static BOOL gDoDisconnect = FALSE;
301static std::string gLaunchFileOnQuit; 301static std::string gLaunchFileOnQuit;
302 302
@@ -308,7 +308,7 @@ const char *VFS_INDEX_FILE_BASE = "index.db2.x.";
308static std::string gSecondLife; 308static std::string gSecondLife;
309static std::string gWindowTitle; 309static std::string gWindowTitle;
310#ifdef LL_WINDOWS 310#ifdef LL_WINDOWS
311 static char sWindowClass[] = "Second Life"; 311 static char sWindowClass[] = IMP_VIEWER_NAME;
312#endif 312#endif
313 313
314std::string gLoginPage; 314std::string gLoginPage;
@@ -602,8 +602,12 @@ bool LLAppViewer::init()
602 writeSystemInfo(); 602 writeSystemInfo();
603 603
604 // Build a string representing the current version number. 604 // Build a string representing the current version number.
605 gCurrentVersion = llformat("%s %d.%d.%d.%d", 605 gCurrentVersion = llformat("%s %d.%d.%d / %s %d.%d.%d.%d",
606 gSavedSettings.getString("VersionChannelName").c_str(), 606 gSavedSettings.getString("VersionChannelName").c_str(),
607 IMP_VERSION_MAJOR,
608 IMP_VERSION_MINOR,
609 IMP_VERSION_PATCH,
610 LL_VIEWER_NAME,
607 LL_VERSION_MAJOR, 611 LL_VERSION_MAJOR,
608 LL_VERSION_MINOR, 612 LL_VERSION_MINOR,
609 LL_VERSION_PATCH, 613 LL_VERSION_PATCH,
@@ -1470,15 +1474,15 @@ bool LLAppViewer::initLogging()
1470 1474
1471 // Remove the last ".old" log file. 1475 // Remove the last ".old" log file.
1472 std::string old_log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, 1476 std::string old_log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,
1473 "SecondLife.old"); 1477 "Imprudence.old");
1474 LLFile::remove(old_log_file); 1478 LLFile::remove(old_log_file);
1475 1479
1476 // Rename current log file to ".old" 1480 // Rename current log file to ".old"
1477 std::string log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, 1481 std::string log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,
1478 "SecondLife.log"); 1482 "Imprudence.log");
1479 LLFile::rename(log_file, old_log_file); 1483 LLFile::rename(log_file, old_log_file);
1480 1484
1481 // Set the log file to SecondLife.log 1485 // Set the log file to Imprudence.log
1482 1486
1483 LLError::logToFile(log_file); 1487 LLError::logToFile(log_file);
1484 1488
@@ -1598,7 +1602,7 @@ bool LLAppViewer::initConfiguration()
1598 gSavedSettings.setString("ClientSettingsFile", 1602 gSavedSettings.setString("ClientSettingsFile",
1599 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFileName("Global"))); 1603 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFileName("Global")));
1600 1604
1601 gSavedSettings.setString("VersionChannelName", LL_CHANNEL); 1605 gSavedSettings.setString("VersionChannelName", IMP_VIEWER_NAME);
1602 1606
1603#ifndef LL_RELEASE_FOR_DOWNLOAD 1607#ifndef LL_RELEASE_FOR_DOWNLOAD
1604 gSavedSettings.setBOOL("ShowConsoleWindow", TRUE); 1608 gSavedSettings.setBOOL("ShowConsoleWindow", TRUE);
@@ -1683,7 +1687,7 @@ bool LLAppViewer::initConfiguration()
1683 llinfos << "Command line usage:\n" << clp << llendl; 1687 llinfos << "Command line usage:\n" << clp << llendl;
1684 1688
1685 std::ostringstream msg; 1689 std::ostringstream msg;
1686 msg << "Second Life found an error parsing the command line. \n" 1690 msg << gSecondLife << " found an error parsing the command line. \n"
1687 << "Please see: http://wiki.secondlife.com/wiki/Client_parameters \n" 1691 << "Please see: http://wiki.secondlife.com/wiki/Client_parameters \n"
1688 << "Error: " << clp.getErrorMessage(); 1692 << "Error: " << clp.getErrorMessage();
1689 1693
@@ -1865,7 +1869,7 @@ bool LLAppViewer::initConfiguration()
1865 mYieldTime = gSavedSettings.getS32("YieldTime"); 1869 mYieldTime = gSavedSettings.getS32("YieldTime");
1866 1870
1867 // XUI:translate 1871 // XUI:translate
1868 gSecondLife = "Second Life"; 1872 gSecondLife = IMP_VIEWER_NAME;
1869 1873
1870 // Read skin/branding settings if specified. 1874 // Read skin/branding settings if specified.
1871 //if (! gDirUtilp->getSkinDir().empty() ) 1875 //if (! gDirUtilp->getSkinDir().empty() )
@@ -2111,7 +2115,7 @@ bool LLAppViewer::initWindow()
2111 2115
2112 // always start windowed 2116 // always start windowed
2113 BOOL ignorePixelDepth = gSavedSettings.getBOOL("IgnorePixelDepth"); 2117 BOOL ignorePixelDepth = gSavedSettings.getBOOL("IgnorePixelDepth");
2114 gViewerWindow = new LLViewerWindow(gWindowTitle, "Second Life", 2118 gViewerWindow = new LLViewerWindow(gWindowTitle, gWindowTitle,
2115 gSavedSettings.getS32("WindowX"), gSavedSettings.getS32("WindowY"), 2119 gSavedSettings.getS32("WindowX"), gSavedSettings.getS32("WindowY"),
2116 gSavedSettings.getS32("WindowWidth"), gSavedSettings.getS32("WindowHeight"), 2120 gSavedSettings.getS32("WindowWidth"), gSavedSettings.getS32("WindowHeight"),
2117 FALSE, ignorePixelDepth); 2121 FALSE, ignorePixelDepth);
@@ -2245,6 +2249,9 @@ void LLAppViewer::writeSystemInfo()
2245 gDebugInfo["SLLog"] = LLError::logFileName(); 2249 gDebugInfo["SLLog"] = LLError::logFileName();
2246 2250
2247 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2251 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2252 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR;
2253 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR;
2254 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH;
2248 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2255 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR;
2249 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2256 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR;
2250 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2257 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH;
@@ -2274,9 +2281,7 @@ void LLAppViewer::writeSystemInfo()
2274#endif 2281#endif
2275 2282
2276 // Dump some debugging info 2283 // Dump some debugging info
2277 LL_INFOS("SystemInfo") << gSecondLife 2284 LL_INFOS("SystemInfo") << gCurrentVersion << LL_ENDL;
2278 << " version " << LL_VERSION_MAJOR << "." << LL_VERSION_MINOR << "." << LL_VERSION_PATCH
2279 << LL_ENDL;
2280 2285
2281 // Dump the local time and time zone 2286 // Dump the local time and time zone
2282 time_t now; 2287 time_t now;
@@ -2327,6 +2332,9 @@ void LLAppViewer::handleViewerCrash()
2327 //to check against no matter what 2332 //to check against no matter what
2328 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2333 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2329 2334
2335 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR;
2336 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR;
2337 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH;
2330 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2338 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR;
2331 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2339 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR;
2332 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2340 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH;
@@ -2973,7 +2981,7 @@ void LLAppViewer::badNetworkHandler()
2973 message << 2981 message <<
2974 "The viewer has detected mangled network data indicative\n" 2982 "The viewer has detected mangled network data indicative\n"
2975 "of a bad upstream network connection or an incomplete\n" 2983 "of a bad upstream network connection or an incomplete\n"
2976 "local installation of " << LLAppViewer::instance()->getSecondLifeTitle() << ". \n" 2984 "local installation of " << gSecondLife << ". \n"
2977 " \n" 2985 " \n"
2978 "Try uninstalling and reinstalling to see if this resolves \n" 2986 "Try uninstalling and reinstalling to see if this resolves \n"
2979 "the issue. \n" 2987 "the issue. \n"