diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcontroldef.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp index 2255496..124361b 100644 --- a/linden/indra/newview/llcontroldef.cpp +++ b/linden/indra/newview/llcontroldef.cpp | |||
@@ -1507,14 +1507,47 @@ void declare_settings() | |||
1507 | // Setting name is shared with win_crash_logger | 1507 | // Setting name is shared with win_crash_logger |
1508 | gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes " | 1508 | gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes " |
1509 | "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)"); | 1509 | "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)"); |
1510 | |||
1510 | } | 1511 | } |
1511 | 1512 | ||
1513 | |||
1512 | void fixup_settings() | 1514 | void fixup_settings() |
1513 | { | 1515 | { |
1514 | #if LL_RELEASE_FOR_DOWNLOAD | 1516 | #if LL_RELEASE_FOR_DOWNLOAD |
1515 | // Force some settings on startup | 1517 | // Force some settings on startup |
1516 | gSavedSettings.setBOOL("AnimateTextures", TRUE); // Force AnimateTextures to always be on | 1518 | gSavedSettings.setBOOL("AnimateTextures", TRUE); // Force AnimateTextures to always be on |
1517 | #endif | 1519 | #endif |
1520 | |||
1521 | // Special code to tweak with defaults | ||
1522 | std::string last_major, last_minor, last_patch; | ||
1523 | S32 digit = gLastRunVersion.find_first_of("0123456789"); | ||
1524 | S32 dot = gLastRunVersion.find_first_of('.', digit); | ||
1525 | if (dot != std::string::npos && digit != std::string::npos) | ||
1526 | { | ||
1527 | last_major = gLastRunVersion.substr(digit, dot-digit); | ||
1528 | digit = dot+1; | ||
1529 | dot = gLastRunVersion.find_first_of('.', digit); | ||
1530 | } | ||
1531 | if (dot != std::string::npos && digit != std::string::npos) | ||
1532 | { | ||
1533 | last_minor = gLastRunVersion.substr(digit, dot-digit); | ||
1534 | digit = dot+1; | ||
1535 | dot = gLastRunVersion.find_first_of('.', digit); | ||
1536 | } | ||
1537 | if (dot != std::string::npos && digit != std::string::npos) | ||
1538 | { | ||
1539 | last_patch = gLastRunVersion.substr(digit, dot-digit); | ||
1540 | } | ||
1541 | // 1.18.x -> 1.19.x | ||
1542 | if (last_major == "1" && last_minor == "18") | ||
1543 | { | ||
1544 | if (!gSavedSettings.hasLoaded("EnableVoiceChat")) | ||
1545 | { | ||
1546 | gSavedSettings.setBOOL("EnableVoiceChat", FALSE); // Default 1.18.x users to voice chat disabled | ||
1547 | } | ||
1548 | } | ||
1549 | |||
1550 | gSavedSettings.clearLoaded(); | ||
1518 | } | 1551 | } |
1519 | 1552 | ||
1520 | //////////////////////////////////////////////////////////////////////////// | 1553 | //////////////////////////////////////////////////////////////////////////// |