Added commands to change config file from console:

CONFIG SET section key value value value
CONFIG GET section key
CONFIG SAVE (it saves, but does it save correctly?:)

ScriptEngine will react correctly to any config change made while it is running.
This commit is contained in:
Tedd Hansen
2008-02-02 07:35:51 +00:00
parent b1a6f4821b
commit 2db5de3e72
8 changed files with 83 additions and 12 deletions

View File

@@ -134,14 +134,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
#if DEBUG
Log.Debug(ScriptEngineName, "Refreshing configuration for all modules");
#endif
RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 0);
RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
// Reload from disk
// Reload from disk? No!
//ConfigSource.Reload();
if (File.Exists(OpenSim.Application.iniFilePath))
{
//ConfigSource.Merge(new IniConfigSource(OpenSim.Application.iniFilePath));
}
//if (File.Exists(OpenSim.Application.iniFilePath))
//{
// //ConfigSource.Merge(new IniConfigSource(OpenSim.Application.iniFilePath));
//}
// Create a new object (probably not necessary?)