summaryrefslogtreecommitdiff
path: root/indra/llvfs/lldir_win32.cpp
diff options
context:
space:
mode:
authorChristian Goetze <cg@lindenlab.com>2009-01-06 23:30:52 +0000
committerChristian Goetze <cg@lindenlab.com>2009-01-06 23:30:52 +0000
commitb96d890c44c347bdc0d0109f0a2e3998233a4c5c (patch)
tree886810433c0d0fdc372b6553fd35616acd0255de /indra/llvfs/lldir_win32.cpp
parent36645d1c52b2667d28c76f1aa8e2a0e60ad762bc (diff)
QAR-1141 svn merge -r107086:107087 svn+ssh://svn.lindenlab.com/svn/user/cg/llvfs-fix-2
Diffstat (limited to 'indra/llvfs/lldir_win32.cpp')
-rw-r--r--indra/llvfs/lldir_win32.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llvfs/lldir_win32.cpp b/indra/llvfs/lldir_win32.cpp
index ae2cd36072..bce29e4c2b 100644
--- a/indra/llvfs/lldir_win32.cpp
+++ b/indra/llvfs/lldir_win32.cpp
@@ -128,6 +128,20 @@ LLDir_Win32::LLDir_Win32()
mAppRODataDir = getCurPath();
else
mAppRODataDir = mExecutableDir;
+
+
+ // Build the default cache directory
+ mDefaultCacheDir = buildSLOSCacheDir();
+
+ // Make sure it exists
+ int res = LLFile::mkdir(mDefaultCacheDir);
+ if (res == -1)
+ {
+ if (errno != EEXIST)
+ {
+ llwarns << "Couldn't create LL_PATH_CACHE dir " << mDefaultCacheDir << llendl;
+ }
+ }
}
LLDir_Win32::~LLDir_Win32()