aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-07-05 20:13:34 -0700
committerMcCabe Maxsted2011-07-05 20:13:34 -0700
commita435295186fc501801bebcd2aea8b4ef76fb0a3b (patch)
tree50ef7088cada475eaabe45a82604b0242e2dc51c
parentFixed #1011: chat range options aren't saved in prefs > notifications (diff)
downloadmeta-impy-a435295186fc501801bebcd2aea8b4ef76fb0a3b.zip
meta-impy-a435295186fc501801bebcd2aea8b4ef76fb0a3b.tar.gz
meta-impy-a435295186fc501801bebcd2aea8b4ef76fb0a3b.tar.bz2
meta-impy-a435295186fc501801bebcd2aea8b4ef76fb0a3b.tar.xz
Added debug setting KeepUnpackedCacheFiles to keep unpacked script, sound, and avatar files in the cache between restarts
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llappviewer.cpp14
2 files changed, 20 insertions, 5 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 7d9a0ca..3d38a18 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -2574,6 +2574,17 @@
2574 2574
2575 <!-- Begin: cache clearing --> 2575 <!-- Begin: cache clearing -->
2576 2576
2577 <key>KeepUnpackedCacheFiles</key>
2578 <map>
2579 <key>Comment</key>
2580 <string>If TRUE, the viewer won't delete unpacked cache files when logging out (improves overall performance and fixes sound bugs)</string>
2581 <key>Persist</key>
2582 <integer>1</integer>
2583 <key>Type</key>
2584 <string>Boolean</string>
2585 <key>Value</key>
2586 <integer>1</integer>
2587 </map>
2577 <key>PurgeCacheOnStartup</key> 2588 <key>PurgeCacheOnStartup</key>
2578 <map> 2589 <map>
2579 <key>Comment</key> 2590 <key>Comment</key>
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 62b6242..c10c79b 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1298,13 +1298,17 @@ bool LLAppViewer::cleanup()
1298 llinfos << "Settings patched up" << llendflush; 1298 llinfos << "Settings patched up" << llendflush;
1299 1299
1300 // delete some of the files left around in the cache. 1300 // delete some of the files left around in the cache.
1301 removeCacheFiles("*.wav"); 1301 if (!gSavedSettings.getBOOL("KeepUnpackedCacheFiles"))
1302 {
1303 LL_INFOS("AppCache") << "Purging unpacked files..." << llendl;
1304 removeCacheFiles("*.wav");
1305 removeCacheFiles("*.lso");
1306 removeCacheFiles("*.dsf");
1307 removeCacheFiles("*.bodypart");
1308 removeCacheFiles("*.clothing");
1309 }
1302 removeCacheFiles("*.tmp"); 1310 removeCacheFiles("*.tmp");
1303 removeCacheFiles("*.lso");
1304 removeCacheFiles("*.out"); 1311 removeCacheFiles("*.out");
1305 removeCacheFiles("*.dsf");
1306 removeCacheFiles("*.bodypart");
1307 removeCacheFiles("*.clothing");
1308 1312
1309 llinfos << "Cache files removed" << llendflush; 1313 llinfos << "Cache files removed" << llendflush;
1310 1314