Make a missing or read-only estate_settings.xml non-fatal
parent
bed6c763a5
commit
94558603e5
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue