summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia.cpp
diff options
context:
space:
mode:
authorMark Palange (Mani) <palange@lindenlab.com>2009-07-29 18:06:45 -0700
committerMark Palange (Mani) <palange@lindenlab.com>2009-07-29 18:06:45 -0700
commit9021a536e509571e7a53643275d4400242f8c633 (patch)
treedef128c0692e07c4841923784da1113e0036ea57 /indra/newview/llviewermedia.cpp
parent4f32c076c81b8388e63ce002ec5a228bfe412843 (diff)
DEV-35405 Added creation of <exe_dir>/components directory in debug builds to quell the savage llmozlib.
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r--indra/newview/llviewermedia.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 1b3fd5d49b..085d6d47e5 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -519,6 +519,11 @@ void LLViewerMedia::buildMediaManagerData( LLMediaManagerData* init_data )
component_dir += gDirUtilp->getDirDelimiter();
#ifdef LL_DEBUG
component_dir += "mozilla_debug";
+ // *NOTE:Mani - if this doesn't exist llmozlib goes crashy in the debug build.
+ // LLMozlib::init wants to write some files to <exe_dir>/components
+ std::string debug_init_component_dir( gDirUtilp->getExecutableDir() );
+ debug_init_component_dir += "/components";
+ LLAPRFile::makeDir(debug_init_component_dir.c_str());
#else // LL_DEBUG
component_dir += "mozilla";
#endif // LL_DEBUG