Another attempt at fixing the disappearing estate_settings.xml file.

afrisby
Brian McBee 2007-09-11 21:41:26 +00:00
parent 71f94d8421
commit b521e5d219
1 changed files with 24 additions and 25 deletions

View File

@ -59,6 +59,8 @@ namespace OpenSim.Framework.Configuration
throw new Exception("Error: Invalid .xml File. <Root> first child should be <Config>");
}
public void LoadData()
{
lock (this)
{
doc = new XmlDocument();
if (File.Exists(fileName))
@ -84,6 +86,7 @@ namespace OpenSim.Framework.Configuration
this.Commit();
}
}
}
public void LoadDataFromString(string data)
{
@ -124,12 +127,8 @@ namespace OpenSim.Framework.Configuration
{
Directory.CreateDirectory(Util.configDir());
}
lock(this)
{
doc.Save(fileName);
}
}
public void Close()
{