Make a missing or read-only estate_settings.xml non-fatal
parent
bed6c763a5
commit
94558603e5
|
@ -276,6 +276,8 @@ namespace OpenSim.Framework
|
||||||
public EstateSettings()
|
public EstateSettings()
|
||||||
{
|
{
|
||||||
if (configMember == null)
|
if (configMember == null)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
// Load legacy defaults
|
// Load legacy defaults
|
||||||
//
|
//
|
||||||
|
@ -288,6 +290,10 @@ namespace OpenSim.Framework
|
||||||
l_EstateManagers.Clear();
|
l_EstateManagers.Clear();
|
||||||
configMember.performConfigurationRetrieve();
|
configMember.performConfigurationRetrieve();
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
|
|
|
@ -44,10 +44,16 @@ namespace OpenSim.Framework
|
||||||
public RegionSettings()
|
public RegionSettings()
|
||||||
{
|
{
|
||||||
if (configMember == null)
|
if (configMember == null)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
|
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
|
||||||
configMember.performConfigurationRetrieve();
|
configMember.performConfigurationRetrieve();
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoadConfigurationOptions()
|
public void LoadConfigurationOptions()
|
||||||
|
|
Loading…
Reference in New Issue