From b96d890c44c347bdc0d0109f0a2e3998233a4c5c Mon Sep 17 00:00:00 2001 From: Christian Goetze Date: Tue, 6 Jan 2009 23:30:52 +0000 Subject: QAR-1141 svn merge -r107086:107087 svn+ssh://svn.lindenlab.com/svn/user/cg/llvfs-fix-2 --- indra/llvfs/lldir_win32.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'indra/llvfs/lldir_win32.cpp') 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() -- cgit v1.2.3