diff options
Diffstat (limited to 'OpenSim/Framework/Configuration')
-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 | ||