aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llappviewer.h')
-rw-r--r--linden/indra/newview/llappviewer.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/linden/indra/newview/llappviewer.h b/linden/indra/newview/llappviewer.h
index 3be5de7..797f5dd 100644
--- a/linden/indra/newview/llappviewer.h
+++ b/linden/indra/newview/llappviewer.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -63,7 +64,8 @@ public:
63 void forceQuit(); // Puts the viewer into 'shutting down without error' mode. 64 void forceQuit(); // Puts the viewer into 'shutting down without error' mode.
64 void requestQuit(); // Request a quit. A kinder, gentler quit. 65 void requestQuit(); // Request a quit. A kinder, gentler quit.
65 void userQuit(); // The users asks to quit. Confirm, then requestQuit() 66 void userQuit(); // The users asks to quit. Confirm, then requestQuit()
66 void earlyExit(const std::string& msg); // Display an error dialog and forcibly quit. 67 void earlyExit(const std::string& name,
68 const LLSD& substitutions = LLSD()); // Display an error dialog and forcibly quit.
67 void forceExit(S32 arg); // exit() immediately (after some cleanup). 69 void forceExit(S32 arg); // exit() immediately (after some cleanup).
68 void abortQuit(); // Called to abort a quit request. 70 void abortQuit(); // Called to abort a quit request.
69 71
@@ -83,7 +85,8 @@ public:
83 virtual void handleSyncCrashTrace() = 0; // any low-level crash-prep that has to happen in the context of the crashing thread before the crash report is delivered. 85 virtual void handleSyncCrashTrace() = 0; // any low-level crash-prep that has to happen in the context of the crashing thread before the crash report is delivered.
84 static void handleViewerCrash(); // Hey! The viewer crashed. Do this, soon. 86 static void handleViewerCrash(); // Hey! The viewer crashed. Do this, soon.
85 static void handleSyncViewerCrash(); // Hey! The viewer crashed. Do this right NOW in the context of the crashing thread. 87 static void handleSyncViewerCrash(); // Hey! The viewer crashed. Do this right NOW in the context of the crashing thread.
86 88 void checkForCrash();
89
87 // Thread accessors 90 // Thread accessors
88 static LLTextureCache* getTextureCache() { return sTextureCache; } 91 static LLTextureCache* getTextureCache() { return sTextureCache; }
89 static LLWorkerThread* getImageDecodeThread() { return sImageDecodeThread; } 92 static LLWorkerThread* getImageDecodeThread() { return sImageDecodeThread; }
@@ -125,10 +128,14 @@ public:
125 static const std::string sPerAccountSettingsName; 128 static const std::string sPerAccountSettingsName;
126 static const std::string sCrashSettingsName; 129 static const std::string sCrashSettingsName;
127 130
128 // returns false if loading a *required* settings file fails. 131 // Load settings from the location specified by loction_key.
129 bool loadSettingsFromDirectory(ELLPath path_index, bool set_defaults = false); 132 // Key availale and rules for loading, are specified in
133 // 'app_settings/settings_files.xml'
134 bool loadSettingsFromDirectory(const std::string& location_key,
135 bool set_defaults = false);
130 136
131 std::string getSettingsFileName(const std::string& file); 137 std::string getSettingsFilename(const std::string& location_key,
138 const std::string& file);
132 139
133 // For thread debugging. 140 // For thread debugging.
134 // llstartup needs to control init. 141 // llstartup needs to control init.
@@ -166,6 +173,10 @@ private:
166 bool initCache(); // Initialize local client cache. 173 bool initCache(); // Initialize local client cache.
167 void purgeCache(); // Clear the local cache. 174 void purgeCache(); // Clear the local cache.
168 175
176 // We have switched locations of both Mac and Windows cache, make sure
177 // files migrate and old cache is cleared out.
178 void migrateCacheDirectory();
179
169 void cleanupSavedSettings(); // Sets some config data to current or default values during cleanup. 180 void cleanupSavedSettings(); // Sets some config data to current or default values during cleanup.
170 void removeCacheFiles(const std::string& filemask); // Deletes cached files the match the given wildcard. 181 void removeCacheFiles(const std::string& filemask); // Deletes cached files the match the given wildcard.
171 182
@@ -188,7 +199,7 @@ private:
188 bool mSecondInstance; // Is this a second instance of the app? 199 bool mSecondInstance; // Is this a second instance of the app?
189 200
190 std::string mMarkerFileName; 201 std::string mMarkerFileName;
191 apr_file_t* mMarkerFile; // A file created to indicate the app is running. 202 LLAPRFile mMarkerFile; // A file created to indicate the app is running.
192 203
193 std::string mLogoutMarkerFileName; 204 std::string mLogoutMarkerFileName;
194 apr_file_t* mLogoutMarkerFile; // A file created to indicate the app is running. 205 apr_file_t* mLogoutMarkerFile; // A file created to indicate the app is running.
@@ -213,7 +224,7 @@ private:
213 bool mQuitRequested; // User wants to quit, may have modified documents open. 224 bool mQuitRequested; // User wants to quit, may have modified documents open.
214 bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim. 225 bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim.
215 S32 mYieldTime; 226 S32 mYieldTime;
216 LLSD mSettingsFileList; 227 LLSD mSettingsLocationList;
217 228
218 LLWatchdogTimeout* mMainloopTimeout; 229 LLWatchdogTimeout* mMainloopTimeout;
219 230