summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHecklezz <tj8@live.com.au>2025-11-17 00:12:30 +1000
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-11-17 12:43:42 +0200
commit08983d6646b49bbc3983c3c48603d3539e39836e (patch)
treee5ae1713a3417702a29c3e809014a4f0baa22446
parent1c89ef9a63b30b5fa2d3f080ad3eb4a263e2ccd7 (diff)
Fix the cache from being cleared every launch if NewCacheLocation is invalid
Signed-off-by: Hecklezz <tj8@live.com.au>
-rw-r--r--indra/newview/llappviewer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index bfd8b1dcc7..7ed65e7027 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -4386,6 +4386,8 @@ bool LLAppViewer::initCache()
LL_WARNS("AppCache") << "Unable to set cache location" << LL_ENDL;
gSavedSettings.setString("CacheLocation", "");
gSavedSettings.setString("CacheLocationTopFolder", "");
+ gSavedSettings.setString("NewCacheLocation", "");
+ gSavedSettings.setString("NewCacheLocationTopFolder", "");
}
const std::string cache_dir = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, cache_dir_name);