aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r--linden/indra/newview/llappviewer.cpp54
1 files changed, 30 insertions, 24 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index f1b2e32..14214b5 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[] = "Imprudence";
312#endif 312#endif
313 313
314std::string gLoginPage; 314std::string gLoginPage;
@@ -580,7 +580,7 @@ bool LLAppViewer::init()
580 580
581 // Need to do this initialization before we do anything else, since anything 581 // Need to do this initialization before we do anything else, since anything
582 // that touches files should really go through the lldir API 582 // that touches files should really go through the lldir API
583 gDirUtilp->initAppDirs("SecondLife"); 583 gDirUtilp->initAppDirs(IMP_VIEWER_NAME);
584 // set skin search path to default, will be overridden later 584 // set skin search path to default, will be overridden later
585 // this allows simple skinned file lookups to work 585 // this allows simple skinned file lookups to work
586 gDirUtilp->setSkinFolder("default"); 586 gDirUtilp->setSkinFolder("default");
@@ -602,8 +602,13 @@ 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 / %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 IMP_VERSION_TEST,
611 LL_VIEWER_NAME,
607 LL_VERSION_MAJOR, 612 LL_VERSION_MAJOR,
608 LL_VERSION_MINOR, 613 LL_VERSION_MINOR,
609 LL_VERSION_PATCH, 614 LL_VERSION_PATCH,
@@ -1470,15 +1475,15 @@ bool LLAppViewer::initLogging()
1470 1475
1471 // Remove the last ".old" log file. 1476 // Remove the last ".old" log file.
1472 std::string old_log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, 1477 std::string old_log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,
1473 "SecondLife.old"); 1478 "Imprudence.old");
1474 LLFile::remove(old_log_file); 1479 LLFile::remove(old_log_file);
1475 1480
1476 // Rename current log file to ".old" 1481 // Rename current log file to ".old"
1477 std::string log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, 1482 std::string log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,
1478 "SecondLife.log"); 1483 "Imprudence.log");
1479 LLFile::rename(log_file, old_log_file); 1484 LLFile::rename(log_file, old_log_file);
1480 1485
1481 // Set the log file to SecondLife.log 1486 // Set the log file to Imprudence.log
1482 1487
1483 LLError::logToFile(log_file); 1488 LLError::logToFile(log_file);
1484 1489
@@ -1598,12 +1603,7 @@ bool LLAppViewer::initConfiguration()
1598 gSavedSettings.setString("ClientSettingsFile", 1603 gSavedSettings.setString("ClientSettingsFile",
1599 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFileName("Global"))); 1604 gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, getSettingsFileName("Global")));
1600 1605
1601 gSavedSettings.setString("VersionChannelName", LL_CHANNEL); 1606 gSavedSettings.setString("VersionChannelName", IMP_VIEWER_NAME);
1602
1603#ifndef LL_RELEASE_FOR_DOWNLOAD
1604 gSavedSettings.setBOOL("ShowConsoleWindow", TRUE);
1605 gSavedSettings.setBOOL("AllowMultipleViewers", TRUE);
1606#endif
1607 1607
1608#if !LL_DYNAMIC_FONT_DISCOVERY 1608#if !LL_DYNAMIC_FONT_DISCOVERY
1609 // static font discovery - user settings can override. 1609 // static font discovery - user settings can override.
@@ -1683,7 +1683,7 @@ bool LLAppViewer::initConfiguration()
1683 llinfos << "Command line usage:\n" << clp << llendl; 1683 llinfos << "Command line usage:\n" << clp << llendl;
1684 1684
1685 std::ostringstream msg; 1685 std::ostringstream msg;
1686 msg << "Second Life found an error parsing the command line. \n" 1686 msg << gSecondLife << " found an error parsing the command line. \n"
1687 << "Please see: http://wiki.secondlife.com/wiki/Client_parameters \n" 1687 << "Please see: http://wiki.secondlife.com/wiki/Client_parameters \n"
1688 << "Error: " << clp.getErrorMessage(); 1688 << "Error: " << clp.getErrorMessage();
1689 1689
@@ -1865,7 +1865,7 @@ bool LLAppViewer::initConfiguration()
1865 mYieldTime = gSavedSettings.getS32("YieldTime"); 1865 mYieldTime = gSavedSettings.getS32("YieldTime");
1866 1866
1867 // XUI:translate 1867 // XUI:translate
1868 gSecondLife = "Second Life"; 1868 gSecondLife = IMP_VIEWER_NAME;
1869 1869
1870 // Read skin/branding settings if specified. 1870 // Read skin/branding settings if specified.
1871 //if (! gDirUtilp->getSkinDir().empty() ) 1871 //if (! gDirUtilp->getSkinDir().empty() )
@@ -2111,7 +2111,7 @@ bool LLAppViewer::initWindow()
2111 2111
2112 // always start windowed 2112 // always start windowed
2113 BOOL ignorePixelDepth = gSavedSettings.getBOOL("IgnorePixelDepth"); 2113 BOOL ignorePixelDepth = gSavedSettings.getBOOL("IgnorePixelDepth");
2114 gViewerWindow = new LLViewerWindow(gWindowTitle, "Second Life", 2114 gViewerWindow = new LLViewerWindow(gWindowTitle, gWindowTitle,
2115 gSavedSettings.getS32("WindowX"), gSavedSettings.getS32("WindowY"), 2115 gSavedSettings.getS32("WindowX"), gSavedSettings.getS32("WindowY"),
2116 gSavedSettings.getS32("WindowWidth"), gSavedSettings.getS32("WindowHeight"), 2116 gSavedSettings.getS32("WindowWidth"), gSavedSettings.getS32("WindowHeight"),
2117 FALSE, ignorePixelDepth); 2117 FALSE, ignorePixelDepth);
@@ -2245,6 +2245,10 @@ void LLAppViewer::writeSystemInfo()
2245 gDebugInfo["SLLog"] = LLError::logFileName(); 2245 gDebugInfo["SLLog"] = LLError::logFileName();
2246 2246
2247 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2247 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2248 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR;
2249 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR;
2250 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH;
2251 gDebugInfo["ClientInfo"]["ImpTestVersion"] = IMP_VERSION_TEST;
2248 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2252 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR;
2249 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2253 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR;
2250 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2254 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH;
@@ -2274,9 +2278,7 @@ void LLAppViewer::writeSystemInfo()
2274#endif 2278#endif
2275 2279
2276 // Dump some debugging info 2280 // Dump some debugging info
2277 LL_INFOS("SystemInfo") << gSecondLife 2281 LL_INFOS("SystemInfo") << gCurrentVersion << LL_ENDL;
2278 << " version " << LL_VERSION_MAJOR << "." << LL_VERSION_MINOR << "." << LL_VERSION_PATCH
2279 << LL_ENDL;
2280 2282
2281 // Dump the local time and time zone 2283 // Dump the local time and time zone
2282 time_t now; 2284 time_t now;
@@ -2327,6 +2329,10 @@ void LLAppViewer::handleViewerCrash()
2327 //to check against no matter what 2329 //to check against no matter what
2328 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); 2330 gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName");
2329 2331
2332 gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR;
2333 gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR;
2334 gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH;
2335 gDebugInfo["ClientInfo"]["ImpTestVersion"] = IMP_VERSION_TEST;
2330 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; 2336 gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR;
2331 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; 2337 gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR;
2332 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; 2338 gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH;
@@ -2680,7 +2686,7 @@ bool LLAppViewer::initCache()
2680 std::string cache_dir = gDirUtilp->getOSUserAppDir(); 2686 std::string cache_dir = gDirUtilp->getOSUserAppDir();
2681 std::string new_cache_dir = gDirUtilp->getOSCacheDir(); 2687 std::string new_cache_dir = gDirUtilp->getOSCacheDir();
2682 cache_dir = cache_dir + "/cache"; 2688 cache_dir = cache_dir + "/cache";
2683 new_cache_dir = new_cache_dir + "/SecondLife"; 2689 new_cache_dir = new_cache_dir + "/" + gSecondLife;
2684 if (gDirUtilp->fileExists(cache_dir)) 2690 if (gDirUtilp->fileExists(cache_dir))
2685 { 2691 {
2686 gDirUtilp->setCacheDir(cache_dir); 2692 gDirUtilp->setCacheDir(cache_dir);
@@ -2973,7 +2979,7 @@ void LLAppViewer::badNetworkHandler()
2973 message << 2979 message <<
2974 "The viewer has detected mangled network data indicative\n" 2980 "The viewer has detected mangled network data indicative\n"
2975 "of a bad upstream network connection or an incomplete\n" 2981 "of a bad upstream network connection or an incomplete\n"
2976 "local installation of " << LLAppViewer::instance()->getSecondLifeTitle() << ". \n" 2982 "local installation of " << gSecondLife << ". \n"
2977 " \n" 2983 " \n"
2978 "Try uninstalling and reinstalling to see if this resolves \n" 2984 "Try uninstalling and reinstalling to see if this resolves \n"
2979 "the issue. \n" 2985 "the issue. \n"