summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llappviewer.h')
-rw-r--r--indra/newview/llappviewer.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/llappviewer.h b/indra/newview/llappviewer.h
index b1262c3e5e..e6856e9744 100644
--- a/indra/newview/llappviewer.h
+++ b/indra/newview/llappviewer.h
@@ -122,10 +122,14 @@ public:
static const std::string sPerAccountSettingsName;
static const std::string sCrashSettingsName;
- // returns false if loading a *required* settings file fails.
- bool loadSettingsFromDirectory(ELLPath path_index, bool set_defaults = false);
+ // Load settings from the location specified by loction_key.
+ // Key availale and rules for loading, are specified in
+ // 'app_settings/settings_files.xml'
+ bool loadSettingsFromDirectory(const std::string& location_key,
+ bool set_defaults = false);
- std::string getSettingsFileName(const std::string& file);
+ std::string getSettingsFilename(const std::string& location_key,
+ const std::string& file);
// For thread debugging.
// llstartup needs to control init.
@@ -160,6 +164,10 @@ private:
bool initCache(); // Initialize local client cache.
void purgeCache(); // Clear the local cache.
+ // We have switched locations of both Mac and Windows cache, make sure
+ // files migrate and old cache is cleared out.
+ void migrateCacheDirectory();
+
void cleanupSavedSettings(); // Sets some config data to current or default values during cleanup.
void removeCacheFiles(const std::string& filemask); // Deletes cached files the match the given wildcard.
@@ -207,7 +215,7 @@ private:
bool mQuitRequested; // User wants to quit, may have modified documents open.
bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim.
S32 mYieldTime;
- LLSD mSettingsFileList;
+ LLSD mSettingsLocationList;
LLWatchdogTimeout* mMainloopTimeout;