From 648d1099967e855c4cd3d6669aab5ca28b61c0d1 Mon Sep 17 00:00:00 2001 From: Liny Date: Fri, 15 Jul 2011 15:46:35 -0700 Subject: [PATCH] Adding setting to keep downloaded and cached sounds for ease of relogging and not having to wait for sounds to re-download. Also helps with running multiple clients so that sounds dont break when you log out of one client. --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llappviewer.cpp | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 455bddf52c..a1eaa8693d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -102,6 +102,17 @@ Value 0 + PhoenixKeepUnpackedCacheFiles + + Comment + If TRUE, the viewer won't delete unpacked cache files when logging out (improves overall performance and fixes sound bugs) + Persist + 1 + Type + Boolean + Value + 0 + RadarAlertChannel Comment diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index bc826fcf80..384739f7ca 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1529,7 +1529,10 @@ bool LLAppViewer::cleanup() removeCacheFiles("*.tmp"); removeCacheFiles("*.lso"); removeCacheFiles("*.out"); - removeCacheFiles("*.dsf"); + if(!gSavedSettings.getBOOL("PhoenixKeepUnpackedCacheFiles")) + { + removeCacheFiles("*.dsf"); + } removeCacheFiles("*.bodypart"); removeCacheFiles("*.clothing");