diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index e85abb1..4485cdf 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -440,8 +440,6 @@ static void settings_to_globals() | |||
440 | gMapScale = gSavedSettings.getF32("MapScale"); | 440 | gMapScale = gSavedSettings.getF32("MapScale"); |
441 | LLHoverView::sShowHoverTips = gSavedSettings.getBOOL("ShowHoverTips"); | 441 | LLHoverView::sShowHoverTips = gSavedSettings.getBOOL("ShowHoverTips"); |
442 | 442 | ||
443 | LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap"); | ||
444 | |||
445 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); | 443 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); |
446 | 444 | ||
447 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); | 445 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); |
@@ -779,6 +777,9 @@ bool LLAppViewer::init() | |||
779 | // | 777 | // |
780 | initWindow(); | 778 | initWindow(); |
781 | 779 | ||
780 | // initWindow also initializes the Feature List, so now we can initialize this global. | ||
781 | LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap"); | ||
782 | |||
782 | { | 783 | { |
783 | BOOL download = gSavedSettings.getBOOL("DownloadClientTags"); | 784 | BOOL download = gSavedSettings.getBOOL("DownloadClientTags"); |
784 | 785 | ||
@@ -2694,35 +2695,32 @@ void LLAppViewer::initMarkerFile() | |||
2694 | std::string llerror_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, LLERROR_MARKER_FILE_NAME); | 2695 | std::string llerror_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, LLERROR_MARKER_FILE_NAME); |
2695 | std::string error_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, ERROR_MARKER_FILE_NAME); | 2696 | std::string error_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, ERROR_MARKER_FILE_NAME); |
2696 | 2697 | ||
2697 | |||
2698 | if (LLAPRFile::isExist(mMarkerFileName, LL_APR_RB) && !anotherInstanceRunning()) | 2698 | if (LLAPRFile::isExist(mMarkerFileName, LL_APR_RB) && !anotherInstanceRunning()) |
2699 | { | 2699 | { |
2700 | gLastExecEvent = LAST_EXEC_FROZE; | 2700 | gLastExecEvent = LAST_EXEC_FROZE; |
2701 | LL_INFOS("MarkerFile") << "Exec marker found: program froze on previous execution" << LL_ENDL; | 2701 | LL_INFOS("MarkerFile") << "Exec marker found: program froze on previous execution" << LL_ENDL; |
2702 | } | 2702 | } |
2703 | |||
2704 | if(LLAPRFile::isExist(logout_marker_file, LL_APR_RB)) | 2703 | if(LLAPRFile::isExist(logout_marker_file, LL_APR_RB)) |
2705 | { | 2704 | { |
2706 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << LAST_EXEC_LLERROR_CRASH << LL_ENDL; | ||
2707 | gLastExecEvent = LAST_EXEC_LOGOUT_FROZE; | 2705 | gLastExecEvent = LAST_EXEC_LOGOUT_FROZE; |
2706 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2707 | LLAPRFile::remove(logout_marker_file); | ||
2708 | } | 2708 | } |
2709 | if(LLAPRFile::isExist(llerror_marker_file, LL_APR_RB)) | 2709 | if(LLAPRFile::isExist(llerror_marker_file, LL_APR_RB)) |
2710 | { | 2710 | { |
2711 | llinfos << "Last exec LLError crashed, setting LastExecEvent to " << LAST_EXEC_LLERROR_CRASH << llendl; | ||
2712 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; | 2711 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; |
2713 | else gLastExecEvent = LAST_EXEC_LLERROR_CRASH; | 2712 | else gLastExecEvent = LAST_EXEC_LLERROR_CRASH; |
2713 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2714 | LLAPRFile::remove(llerror_marker_file); | ||
2714 | } | 2715 | } |
2715 | if(LLAPRFile::isExist(error_marker_file, LL_APR_RB)) | 2716 | if(LLAPRFile::isExist(error_marker_file, LL_APR_RB)) |
2716 | { | 2717 | { |
2717 | LL_INFOS("MarkerFile") << "Last exec crashed, setting LastExecEvent to " << LAST_EXEC_OTHER_CRASH << LL_ENDL; | ||
2718 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; | 2718 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; |
2719 | else gLastExecEvent = LAST_EXEC_OTHER_CRASH; | 2719 | else gLastExecEvent = LAST_EXEC_OTHER_CRASH; |
2720 | LL_INFOS("MarkerFile") << "Last exec crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2721 | LLAPRFile::remove(error_marker_file); | ||
2720 | } | 2722 | } |
2721 | 2723 | ||
2722 | LLAPRFile::remove(logout_marker_file); | ||
2723 | LLAPRFile::remove(llerror_marker_file); | ||
2724 | LLAPRFile::remove(error_marker_file); | ||
2725 | |||
2726 | // No new markers if another instance is running. | 2724 | // No new markers if another instance is running. |
2727 | if(anotherInstanceRunning()) | 2725 | if(anotherInstanceRunning()) |
2728 | { | 2726 | { |