diff options
author | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
commit | acfdcf2b1deeb04698174c78e8cb22b093445bb1 (patch) | |
tree | 811293650bcf81d01ea7c54d7c2cf263110aa329 /linden/indra/newview/llappviewer.cpp | |
parent | Second Life viewer sources 1.20.2 (diff) | |
download | meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.zip meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.gz meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.bz2 meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.xz |
Second Life viewer sources 1.20.3
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 7c71e46..4a9a158 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -64,6 +64,7 @@ | |||
64 | #include "llurldispatcher.h" | 64 | #include "llurldispatcher.h" |
65 | #include "llurlhistory.h" | 65 | #include "llurlhistory.h" |
66 | #include "llfirstuse.h" | 66 | #include "llfirstuse.h" |
67 | #include "llglimmediate.h" | ||
67 | 68 | ||
68 | #include "llweb.h" | 69 | #include "llweb.h" |
69 | #include "llsecondlifeurls.h" | 70 | #include "llsecondlifeurls.h" |
@@ -409,10 +410,11 @@ static void settings_to_globals() | |||
409 | static void settings_modify() | 410 | static void settings_modify() |
410 | { | 411 | { |
411 | LLRenderTarget::sUseFBO = gSavedSettings.getBOOL("RenderUseFBO"); | 412 | LLRenderTarget::sUseFBO = gSavedSettings.getBOOL("RenderUseFBO"); |
412 | LLVOAvatar::sUseImpostors = FALSE; //gSavedSettings.getBOOL("RenderUseImpostors"); | 413 | LLVOAvatar::sUseImpostors = gSavedSettings.getBOOL("RenderUseImpostors"); |
413 | LLVOSurfacePatch::sLODFactor = gSavedSettings.getF32("RenderTerrainLODFactor"); | 414 | LLVOSurfacePatch::sLODFactor = gSavedSettings.getF32("RenderTerrainLODFactor"); |
414 | LLVOSurfacePatch::sLODFactor *= LLVOSurfacePatch::sLODFactor; //sqaure lod factor to get exponential range of [1,4] | 415 | LLVOSurfacePatch::sLODFactor *= LLVOSurfacePatch::sLODFactor; //sqaure lod factor to get exponential range of [1,4] |
415 | 416 | gGL.setClever(gSavedSettings.getBOOL("RenderUseCleverUI")); | |
417 | |||
416 | #if LL_VECTORIZE | 418 | #if LL_VECTORIZE |
417 | if (gSysCPU.hasAltivec()) | 419 | if (gSysCPU.hasAltivec()) |
418 | { | 420 | { |
@@ -767,15 +769,6 @@ bool LLAppViewer::init() | |||
767 | return 1; | 769 | return 1; |
768 | } | 770 | } |
769 | 771 | ||
770 | #if LL_DARWIN | ||
771 | // Display the release notes for the current version | ||
772 | if(!gHideLinks && gCurrentVersion != gLastRunVersion) | ||
773 | { | ||
774 | // Current version and last run version don't match exactly. Display the release notes. | ||
775 | DisplayReleaseNotes(); | ||
776 | } | ||
777 | #endif | ||
778 | |||
779 | // | 772 | // |
780 | // Initialize the window | 773 | // Initialize the window |
781 | // | 774 | // |
@@ -814,51 +807,55 @@ bool LLAppViewer::init() | |||
814 | return 0; | 807 | return 0; |
815 | } | 808 | } |
816 | 809 | ||
817 | // alert the user if they are using unsupported hardware | 810 | |
818 | if(!gSavedSettings.getBOOL("AlertedUnsupportedHardware")) | 811 | bool unsupported = false; |
819 | { | 812 | LLString::format_map_t args; |
820 | bool unsupported = false; | 813 | LLString minSpecs; |
821 | LLString::format_map_t args; | ||
822 | LLString minSpecs; | ||
823 | 814 | ||
824 | // get cpu data from xml | 815 | // get cpu data from xml |
825 | std::stringstream minCPUString(LLAlertDialog::getTemplateMessage("UnsupportedCPUAmount")); | 816 | std::stringstream minCPUString(LLAlertDialog::getTemplateMessage("UnsupportedCPUAmount")); |
826 | S32 minCPU = 0; | 817 | S32 minCPU = 0; |
827 | minCPUString >> minCPU; | 818 | minCPUString >> minCPU; |
828 | 819 | ||
829 | // get RAM data from XML | 820 | // get RAM data from XML |
830 | std::stringstream minRAMString(LLAlertDialog::getTemplateMessage("UnsupportedRAMAmount")); | 821 | std::stringstream minRAMString(LLAlertDialog::getTemplateMessage("UnsupportedRAMAmount")); |
831 | U64 minRAM = 0; | 822 | U64 minRAM = 0; |
832 | minRAMString >> minRAM; | 823 | minRAMString >> minRAM; |
833 | minRAM = minRAM * 1024 * 1024; | 824 | minRAM = minRAM * 1024 * 1024; |
834 | 825 | ||
835 | if(!LLFeatureManager::getInstance()->isGPUSupported()) | 826 | if(!LLFeatureManager::getInstance()->isGPUSupported() && LLFeatureManager::getInstance()->getGPUClass() != GPU_CLASS_UNKNOWN) |
836 | { | 827 | { |
837 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedGPU"); | 828 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedGPU"); |
838 | minSpecs += "\n"; | 829 | minSpecs += "\n"; |
839 | unsupported = true; | 830 | unsupported = true; |
840 | } | 831 | } |
841 | if(gSysCPU.getMhz() < minCPU) | 832 | if(gSysCPU.getMhz() < minCPU) |
842 | { | 833 | { |
843 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedCPU"); | 834 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedCPU"); |
844 | minSpecs += "\n"; | 835 | minSpecs += "\n"; |
845 | unsupported = true; | 836 | unsupported = true; |
846 | } | 837 | } |
847 | if(gSysMemory.getPhysicalMemoryClamped() < minRAM) | 838 | if(gSysMemory.getPhysicalMemoryClamped() < minRAM) |
848 | { | 839 | { |
849 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedRAM"); | 840 | minSpecs += LLAlertDialog::getTemplateMessage("UnsupportedRAM"); |
850 | minSpecs += "\n"; | 841 | minSpecs += "\n"; |
851 | unsupported = true; | 842 | unsupported = true; |
852 | } | 843 | } |
853 | 844 | ||
854 | if(unsupported) | 845 | if (LLFeatureManager::getInstance()->getGPUClass() == GPU_CLASS_UNKNOWN) |
846 | { | ||
847 | gViewerWindow->alertXml("UnknownGPU"); | ||
848 | } | ||
849 | |||
850 | if(unsupported) | ||
851 | { | ||
852 | if(!gSavedSettings.controlExists("WarnUnsupportedHardware") | ||
853 | || gSavedSettings.getBOOL("WarnUnsupportedHardware")) | ||
855 | { | 854 | { |
856 | args["MINSPECS"] = minSpecs; | 855 | args["MINSPECS"] = minSpecs; |
857 | gViewerWindow->alertXml("UnsupportedHardware", args ); | 856 | gViewerWindow->alertXml("UnsupportedHardware", args ); |
858 | |||
859 | // turn off flag | ||
860 | gSavedSettings.setBOOL("AlertedUnsupportedHardware", TRUE); | ||
861 | } | 857 | } |
858 | |||
862 | } | 859 | } |
863 | 860 | ||
864 | // Save the current version to the prefs file | 861 | // Save the current version to the prefs file |
@@ -1445,10 +1442,13 @@ void LLAppViewer::loadSettingsFromDirectory(ELLPath path_index) | |||
1445 | 1442 | ||
1446 | LLString full_settings_path = gDirUtilp->getExpandedFilename(path_index, settings_file); | 1443 | LLString full_settings_path = gDirUtilp->getExpandedFilename(path_index, settings_file); |
1447 | 1444 | ||
1448 | if(settings_name == sGlobalSettingsName) | 1445 | if(settings_name == sGlobalSettingsName |
1446 | && path_index == LL_PATH_USER_SETTINGS) | ||
1449 | { | 1447 | { |
1450 | // The non-persistent setting, ClientSettingsFile, specifies a | 1448 | // The non-persistent setting, ClientSettingsFile, specifies a |
1451 | // custom name to use for the global settings file. | 1449 | // custom name to use for the global settings file. |
1450 | // Only apply this setting if this method is setting the 'Global' | ||
1451 | // settings from the user_settings path. | ||
1452 | std::string custom_path; | 1452 | std::string custom_path; |
1453 | if(gSettings[sGlobalSettingsName]->controlExists("ClientSettingsFile")) | 1453 | if(gSettings[sGlobalSettingsName]->controlExists("ClientSettingsFile")) |
1454 | { | 1454 | { |