summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-02-23 16:39:08 -0800
committerRichard Linden <none@none>2011-02-23 16:39:08 -0800
commit0747341f97a9aec61038de8d2bbe28e7909f5aca (patch)
treef62665d4111f45c5b1b502a2f176251f2ed8a22f /indra/newview
parentf6f392babea8bbf748587c3a8ffe99e598b1a7df (diff)
SOCIAL-547 WIP Add skin selection dropdown to login screen
load session settings after loading user settings so user settings can change the session settings file also don't hardcode file path for session settings files, use path configured in settings_files.xml
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llappviewer.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 2000ed9201..62f52e4b05 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1964,6 +1964,11 @@ bool LLAppViewer::loadSettingsFromDirectory(const std::string& location_key,
{
// try to find filename stored in file_name_setting control
full_settings_path = global_settings->getString(file_it->file_name_setting);
+ if (!gDirUtilp->fileExists(full_settings_path))
+ {
+ // search in default path
+ full_settings_path = gDirUtilp->getExpandedFilename((ELLPath)path_index, full_settings_path);
+ }
}
else
{
@@ -2160,11 +2165,12 @@ bool LLAppViewer::initConfiguration()
<< user_settings_filename << llendl;
}
+ // - load overrides from user_settings
+ loadSettingsFromDirectory("User");
+
if (clp.hasOption("sessionsettings"))
{
- std::string session_settings_filename =
- gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS,
- clp.getOption("sessionsettings")[0]);
+ std::string session_settings_filename = clp.getOption("sessionsettings")[0];
gSavedSettings.setString("SessionSettingsFile", session_settings_filename);
llinfos << "Using session settings filename: "
<< session_settings_filename << llendl;
@@ -2173,9 +2179,7 @@ bool LLAppViewer::initConfiguration()
if (clp.hasOption("usersessionsettings"))
{
- std::string user_session_settings_filename =
- gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,
- clp.getOption("usersessionsettings")[0]);
+ std::string user_session_settings_filename = clp.getOption("usersessionsettings")[0];
gSavedSettings.setString("UserSessionSettingsFile", user_session_settings_filename);
llinfos << "Using user session settings filename: "
<< user_session_settings_filename << llendl;
@@ -2183,8 +2187,6 @@ bool LLAppViewer::initConfiguration()
}
loadSettingsFromDirectory("UserSession");
- // - load overrides from user_settings
- loadSettingsFromDirectory("User");
// - apply command line settings
clp.notify();