diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 88 |
1 files changed, 41 insertions, 47 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index d9dbaaa..c357b8f 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -198,8 +198,8 @@ static EGridInfo GridDefaultChoice = GRID_INFO_AGNI; | |||
198 | static EGridInfo GridDefaultChoice = GRID_INFO_ADITI; | 198 | static EGridInfo GridDefaultChoice = GRID_INFO_ADITI; |
199 | #endif | 199 | #endif |
200 | #else | 200 | #else |
201 | // Default userserver for development builds is dmz | 201 | // Default userserver for development builds is none |
202 | static EGridInfo GridDefaultChoice = GRID_INFO_DMZ; | 202 | static EGridInfo GridDefaultChoice = GRID_INFO_NONE; |
203 | #endif | 203 | #endif |
204 | 204 | ||
205 | #if LL_WINDOWS | 205 | #if LL_WINDOWS |
@@ -430,7 +430,7 @@ static void ui_audio_callback(const LLUUID& uuid) | |||
430 | { | 430 | { |
431 | if (gAudiop) | 431 | if (gAudiop) |
432 | { | 432 | { |
433 | F32 volume = gSavedSettings.getF32("AudioLevelUI"); | 433 | F32 volume = gSavedSettings.getBOOL("MuteUI") ? 0.f : gSavedSettings.getF32("AudioLevelUI"); |
434 | gAudiop->triggerSound(uuid, gAgent.getID(), volume); | 434 | gAudiop->triggerSound(uuid, gAgent.getID(), volume); |
435 | } | 435 | } |
436 | } | 436 | } |
@@ -588,44 +588,24 @@ int parse_args(int argc, char **argv) | |||
588 | gGridChoice = GRID_INFO_AGNI; | 588 | gGridChoice = GRID_INFO_AGNI; |
589 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | 589 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore |
590 | } | 590 | } |
591 | else if (!strcmp(argv[j], "--dmz")) | 591 | else if (!strcmp(argv[j], "--aruna")) |
592 | { | ||
593 | gGridChoice = GRID_INFO_DMZ; | ||
594 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
595 | } | ||
596 | else if (!strcmp(argv[j], "--siva")) | ||
597 | { | ||
598 | gGridChoice = GRID_INFO_SIVA; | ||
599 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
600 | } | ||
601 | else if (!strcmp(argv[j], "--shakti")) | ||
602 | { | 592 | { |
603 | gGridChoice = GRID_INFO_SHAKTI; | 593 | gGridChoice = GRID_INFO_ARUNA; |
604 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | 594 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
605 | } | 595 | } |
606 | else if (!strcmp(argv[j], "--durga")) | 596 | else if (!strcmp(argv[j], "--durga")) |
607 | { | 597 | { |
608 | gGridChoice = GRID_INFO_DURGA; | 598 | gGridChoice = GRID_INFO_DURGA; |
609 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | 599 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore |
610 | } | 600 | } |
611 | else if (!strcmp(argv[j], "--soma")) | ||
612 | { | ||
613 | gGridChoice = GRID_INFO_SOMA; | ||
614 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
615 | } | ||
616 | else if (!strcmp(argv[j], "--ganga")) | 601 | else if (!strcmp(argv[j], "--ganga")) |
617 | { | 602 | { |
618 | gGridChoice = GRID_INFO_GANGA; | 603 | gGridChoice = GRID_INFO_GANGA; |
619 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 604 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
620 | } | 605 | } |
621 | else if (!strcmp(argv[j], "--vaak")) | 606 | else if (!strcmp(argv[j], "--mitra")) |
622 | { | ||
623 | gGridChoice = GRID_INFO_VAAK; | ||
624 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | ||
625 | } | ||
626 | else if (!strcmp(argv[j], "--uma")) | ||
627 | { | 607 | { |
628 | gGridChoice = GRID_INFO_UMA; | 608 | gGridChoice = GRID_INFO_MITRA; |
629 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 609 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
630 | } | 610 | } |
631 | else if (!strcmp(argv[j], "--mohini")) | 611 | else if (!strcmp(argv[j], "--mohini")) |
@@ -633,21 +613,11 @@ int parse_args(int argc, char **argv) | |||
633 | gGridChoice = GRID_INFO_MOHINI; | 613 | gGridChoice = GRID_INFO_MOHINI; |
634 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 614 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
635 | } | 615 | } |
636 | else if (!strcmp(argv[j], "--yami")) | ||
637 | { | ||
638 | gGridChoice = GRID_INFO_YAMI; | ||
639 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | ||
640 | } | ||
641 | else if (!strcmp(argv[j], "--nandi")) | 616 | else if (!strcmp(argv[j], "--nandi")) |
642 | { | 617 | { |
643 | gGridChoice = GRID_INFO_NANDI; | 618 | gGridChoice = GRID_INFO_NANDI; |
644 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 619 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
645 | } | 620 | } |
646 | else if (!strcmp(argv[j], "--mitra")) | ||
647 | { | ||
648 | gGridChoice = GRID_INFO_MITRA; | ||
649 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | ||
650 | } | ||
651 | else if (!strcmp(argv[j], "--radha")) | 621 | else if (!strcmp(argv[j], "--radha")) |
652 | { | 622 | { |
653 | gGridChoice = GRID_INFO_RADHA; | 623 | gGridChoice = GRID_INFO_RADHA; |
@@ -658,9 +628,34 @@ int parse_args(int argc, char **argv) | |||
658 | gGridChoice = GRID_INFO_RAVI; | 628 | gGridChoice = GRID_INFO_RAVI; |
659 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 629 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
660 | } | 630 | } |
661 | else if (!strcmp(argv[j], "--aruna")) | 631 | else if (!strcmp(argv[j], "--siva")) |
662 | { | 632 | { |
663 | gGridChoice = GRID_INFO_ARUNA; | 633 | gGridChoice = GRID_INFO_SIVA; |
634 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
635 | } | ||
636 | else if (!strcmp(argv[j], "--shakti")) | ||
637 | { | ||
638 | gGridChoice = GRID_INFO_SHAKTI; | ||
639 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
640 | } | ||
641 | else if (!strcmp(argv[j], "--soma")) | ||
642 | { | ||
643 | gGridChoice = GRID_INFO_SOMA; | ||
644 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[gGridChoice].mName); // Flawfinder: ignore | ||
645 | } | ||
646 | else if (!strcmp(argv[j], "--uma")) | ||
647 | { | ||
648 | gGridChoice = GRID_INFO_UMA; | ||
649 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | ||
650 | } | ||
651 | else if (!strcmp(argv[j], "--vaak")) | ||
652 | { | ||
653 | gGridChoice = GRID_INFO_VAAK; | ||
654 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | ||
655 | } | ||
656 | else if (!strcmp(argv[j], "--yami")) | ||
657 | { | ||
658 | gGridChoice = GRID_INFO_YAMI; | ||
664 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); | 659 | sprintf(gGridName,"%s", gGridInfo[gGridChoice].mName); |
665 | } | 660 | } |
666 | else if (!strcmp(argv[j], "-user") && (++j < argc)) | 661 | else if (!strcmp(argv[j], "-user") && (++j < argc)) |
@@ -1574,6 +1569,9 @@ bool LLAppViewer::cleanup() | |||
1574 | delete gGlobalEconomy; | 1569 | delete gGlobalEconomy; |
1575 | gGlobalEconomy = NULL; | 1570 | gGlobalEconomy = NULL; |
1576 | 1571 | ||
1572 | delete gActiveChannelSpeakerMgr; | ||
1573 | gActiveChannelSpeakerMgr = NULL; | ||
1574 | |||
1577 | delete gLocalSpeakerMgr; | 1575 | delete gLocalSpeakerMgr; |
1578 | gLocalSpeakerMgr = NULL; | 1576 | gLocalSpeakerMgr = NULL; |
1579 | 1577 | ||
@@ -1873,10 +1871,6 @@ bool LLAppViewer::initEarlyConfiguration() | |||
1873 | { | 1871 | { |
1874 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[GRID_INFO_AGNI].mName); // Flawfinder: ignore | 1872 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[GRID_INFO_AGNI].mName); // Flawfinder: ignore |
1875 | } | 1873 | } |
1876 | else if (!strcmp(argv[j], "--dmz")) | ||
1877 | { | ||
1878 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[GRID_INFO_DMZ].mName); // Flawfinder: ignore | ||
1879 | } | ||
1880 | else if (!strcmp(argv[j], "--siva")) | 1874 | else if (!strcmp(argv[j], "--siva")) |
1881 | { | 1875 | { |
1882 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[GRID_INFO_SIVA].mName); // Flawfinder: ignore | 1876 | snprintf(gGridName, MAX_STRING, "%s", gGridInfo[GRID_INFO_SIVA].mName); // Flawfinder: ignore |
@@ -3081,7 +3075,7 @@ const std::vector<std::string>& LLAppViewer::getLoginURIs() const | |||
3081 | if (gLoginURIs.empty()) | 3075 | if (gLoginURIs.empty()) |
3082 | { | 3076 | { |
3083 | // not specified on the command line, use value from table | 3077 | // not specified on the command line, use value from table |
3084 | gLoginURIs = LLSRV::rewriteURI(gGridInfo[gGridChoice].mLoginURI); | 3078 | gLoginURIs.push_back(gGridInfo[gGridChoice].mLoginURI); |
3085 | } | 3079 | } |
3086 | return gLoginURIs; | 3080 | return gLoginURIs; |
3087 | } | 3081 | } |