mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Move map related settings from [Startup] to a new [Map] section in OpenSim.ini
Existing map settings in [Startup] will continue to work, and if present will override anything in [Map] However, the proper place for such settings would now be [Map] This is to reduce the use of [Startup] as a bag for non-generic settings which should really go in sections, in common with other settings. This commit also extends Diva's previous work to allow a default setting to be given when looking at multiple sections for settings.
This commit is contained in:
@@ -897,7 +897,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl);
|
||||
|
||||
m_generateMaptiles = startupConfig.GetBoolean("GenerateMaptiles", true);
|
||||
string[] possibleMapConfigSections = new string[] { "Map", "Startup" };
|
||||
|
||||
m_generateMaptiles
|
||||
= Util.GetConfigVarFromSections<bool>(config, "GenerateMaptiles", possibleMapConfigSections, true);
|
||||
|
||||
if (m_generateMaptiles)
|
||||
{
|
||||
int maptileRefresh = startupConfig.GetInt("MaptileRefresh", 0);
|
||||
@@ -911,7 +915,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
else
|
||||
{
|
||||
string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString());
|
||||
string tile
|
||||
= Util.GetConfigVarFromSections<string>(
|
||||
config, "MaptileStaticUUID", possibleMapConfigSections, UUID.Zero.ToString());
|
||||
|
||||
UUID tileID;
|
||||
|
||||
if (tile != UUID.Zero.ToString() && UUID.TryParse(tile, out tileID))
|
||||
|
||||
Reference in New Issue
Block a user