Make a missing or read-only estate_settings.xml non-fatal

0.6.0-stable
Melanie Thielker 2008-10-11 15:41:25 +00:00
parent bed6c763a5
commit 94558603e5
2 changed files with 23 additions and 11 deletions

View File

@ -276,6 +276,8 @@ namespace OpenSim.Framework
public EstateSettings()
{
if (configMember == null)
{
try
{
// Load legacy defaults
//
@ -288,6 +290,10 @@ namespace OpenSim.Framework
l_EstateManagers.Clear();
configMember.performConfigurationRetrieve();
}
catch (Exception e)
{
}
}
}
public void Save()

View File

@ -44,10 +44,16 @@ namespace OpenSim.Framework
public RegionSettings()
{
if (configMember == null)
{
try
{
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
configMember.performConfigurationRetrieve();
}
catch (Exception e)
{
}
}
}
public void LoadConfigurationOptions()