diff options
author | Brian McBee | 2007-08-03 18:01:55 +0000 |
---|---|---|
committer | Brian McBee | 2007-08-03 18:01:55 +0000 |
commit | 599a6d32eebc451f9284db8e6abf2946f236d5e9 (patch) | |
tree | 60ca29aaa58b0cf34b5f0514c95229602036895c /OpenSim/Framework/General/Util.cs | |
parent | Yet another commit related to the SceneObject rewrites. (diff) | |
download | opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.zip opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.gz opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.bz2 opensim-SC_OLD-599a6d32eebc451f9284db8e6abf2946f236d5e9.tar.xz |
Changes to prepare for future possible configuration of separate logdir, configdir, datadir.
Diffstat (limited to 'OpenSim/Framework/General/Util.cs')
-rw-r--r-- | OpenSim/Framework/General/Util.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Framework/General/Util.cs b/OpenSim/Framework/General/Util.cs index b9f8e9c..f3e2a01 100644 --- a/OpenSim/Framework/General/Util.cs +++ b/OpenSim/Framework/General/Util.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Security.Cryptography; | 30 | using System.Security.Cryptography; |
30 | using System.Net; | 31 | using System.Net; |
31 | using System.Text; | 32 | using System.Text; |
@@ -275,6 +276,39 @@ namespace OpenSim.Framework.Utilities | |||
275 | return null; | 276 | return null; |
276 | } | 277 | } |
277 | 278 | ||
279 | // | ||
280 | // directory locations | ||
281 | // | ||
282 | public static string homeDir() | ||
283 | { | ||
284 | string temp; | ||
285 | // string personal=(Environment.GetFolderPath(Environment.SpecialFolder.Personal)); | ||
286 | // temp = Path.Combine(personal,".OpenSim"); | ||
287 | temp="."; | ||
288 | return temp; | ||
289 | } | ||
290 | |||
291 | public static string configDir() | ||
292 | { | ||
293 | string temp; | ||
294 | temp = "."; | ||
295 | return temp; | ||
296 | } | ||
297 | |||
298 | public static string dataDir() | ||
299 | { | ||
300 | string temp; | ||
301 | temp = "."; | ||
302 | return temp; | ||
303 | } | ||
304 | |||
305 | public static string logDir() | ||
306 | { | ||
307 | string temp; | ||
308 | temp = "."; | ||
309 | return temp; | ||
310 | } | ||
311 | |||
278 | public Util() | 312 | public Util() |
279 | { | 313 | { |
280 | 314 | ||