diff options
author | Brad Linden <brad@lindenlab.com> | 2024-05-20 11:14:29 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-05-20 11:14:29 -0700 |
commit | 6af5db09faf5ea33a2d4c47b64e76f42edae178a (patch) | |
tree | d746c96bab1bfd44c6373926608e91c0f2fd9e49 /indra/newview/llcommandlineparser.cpp | |
parent | eab232d3ed49bfb1f873e332ff57ec8c311c163b (diff) | |
parent | 6d6eabca44d08d5b97bfe3e941d2b9687c2246ea (diff) |
Merge remote-tracking branch 'origin/DRTVWR-600-maint-A' into brad/merge-maint-a-to-dev
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
-rw-r--r-- | indra/newview/llcommandlineparser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index 030d24bed8..bc61fac00b 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -657,11 +657,12 @@ void LLControlGroupCLP::configure(const std::string& config_filename, LLControlG // This method reads the llsd based config file, and uses it to set // members of a control group. LLSD clpConfigLLSD; + + llifstream input_stream; + input_stream.open(config_filename.c_str(), std::ios::in | std::ios::binary); - std::string xml = gDirUtilp->getFileContents(config_filename); - if (!xml.empty()) + if(input_stream.is_open()) { - std::stringstream input_stream(xml); LLSDSerialize::fromXML(clpConfigLLSD, input_stream); for(LLSD::map_iterator option_itr = clpConfigLLSD.beginMap(); option_itr != clpConfigLLSD.endMap(); |