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/Configuration/XML | |
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/Configuration/XML')
-rw-r--r-- | OpenSim/Framework/Configuration/XML/XmlConfiguration.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs index 72faed6..ffb24ff 100644 --- a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs +++ b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs | |||
@@ -31,6 +31,7 @@ using System.Xml; | |||
31 | 31 | ||
32 | using OpenSim.Framework.Interfaces; | 32 | using OpenSim.Framework.Interfaces; |
33 | using OpenSim.Framework.Configuration.Interfaces; | 33 | using OpenSim.Framework.Configuration.Interfaces; |
34 | using OpenSim.Framework.Utilities; | ||
34 | 35 | ||
35 | namespace OpenSim.Framework.Configuration | 36 | namespace OpenSim.Framework.Configuration |
36 | { | 37 | { |
@@ -119,6 +120,11 @@ namespace OpenSim.Framework.Configuration | |||
119 | 120 | ||
120 | public void Commit() | 121 | public void Commit() |
121 | { | 122 | { |
123 | if (!Directory.Exists(Util.configDir())) | ||
124 | { | ||
125 | Directory.CreateDirectory(Util.configDir()); | ||
126 | } | ||
127 | |||
122 | doc.Save(fileName); | 128 | doc.Save(fileName); |
123 | } | 129 | } |
124 | 130 | ||