summaryrefslogtreecommitdiff
path: root/indra/newview/llwldaycycle.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-05-26 15:11:01 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-05-26 15:11:01 +0300
commitc32b19f31d4d5d0b32fcf64cce1cebd7d79b9b05 (patch)
treefa4b051500577f346e80f647c454a900190c5ad7 /indra/newview/llwldaycycle.cpp
parent72d1efb1529ad0863d35b219a461f353a4b19353 (diff)
STORM-1253 WIP Implemented switching between multiple day cycles (locally and region-wide).
Diffstat (limited to 'indra/newview/llwldaycycle.cpp')
-rw-r--r--indra/newview/llwldaycycle.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llwldaycycle.cpp b/indra/newview/llwldaycycle.cpp
index 7363392042..6ac63fb99e 100644
--- a/indra/newview/llwldaycycle.cpp
+++ b/indra/newview/llwldaycycle.cpp
@@ -100,9 +100,16 @@ void LLWLDayCycle::loadDayCycleFromFile(const std::string & fileName)
// now load the file
std::string pathName(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS,
"windlight/days", fileName));
- llinfos << "Loading DayCycle settings from " << pathName << llendl;
+
+ return loadDayCycleFromPath(pathName);
+}
+
+// static
+LLSD LLWLDayCycle::loadDayCycleFromPath(const std::string& file_path)
+{
+ LL_INFOS("Windlight") << "Loading DayCycle settings from " << file_path << LL_ENDL;
- llifstream day_cycle_xml(pathName);
+ llifstream day_cycle_xml(file_path);
if (day_cycle_xml.is_open())
{
// load and parse it