mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
* some if inversions and added {}'s for readability
This commit is contained in:
@@ -117,7 +117,9 @@ namespace OpenSim
|
||||
msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n";
|
||||
Exception ex = (Exception)e.ExceptionObject;
|
||||
if (ex.InnerException != null)
|
||||
{
|
||||
msg += "InnerException: " + ex.InnerException.ToString() + "\r\n";
|
||||
}
|
||||
|
||||
msg += "\r\n";
|
||||
msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
|
||||
|
||||
@@ -77,6 +77,7 @@ namespace OpenSim
|
||||
|
||||
m_timedScript = startupConfig.GetString("timer_Script", "disabled");
|
||||
}
|
||||
|
||||
base.ReadConfigSettings();
|
||||
}
|
||||
|
||||
@@ -96,13 +97,13 @@ namespace OpenSim
|
||||
base.Startup();
|
||||
|
||||
//Run Startup Commands
|
||||
if (m_startupCommandsFile != String.Empty)
|
||||
if (String.IsNullOrEmpty( m_startupCommandsFile ))
|
||||
{
|
||||
RunCommandScript(m_startupCommandsFile);
|
||||
m_log.Info("[STARTUP]: No startup command script specified. Moving on...");
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[STARTUP]: No startup command script specified. Moving on...");
|
||||
RunCommandScript(m_startupCommandsFile);
|
||||
}
|
||||
|
||||
// Start timer script (run a script every xx seconds)
|
||||
@@ -365,6 +366,7 @@ namespace OpenSim
|
||||
{
|
||||
m_sceneManager.TrySetCurrentScene("..");
|
||||
}
|
||||
|
||||
m_regionData.Remove(killScene.RegionInfo);
|
||||
m_sceneManager.CloseScene(killScene);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,10 @@ namespace OpenSim
|
||||
{
|
||||
IConfigSource DefaultConfig = new IniConfigSource();
|
||||
if (DefaultConfig.Configs["Startup"] == null)
|
||||
{
|
||||
DefaultConfig.AddConfig("Startup");
|
||||
}
|
||||
|
||||
IConfig config = DefaultConfig.Configs["Startup"];
|
||||
if (config != null)
|
||||
{
|
||||
@@ -225,7 +228,9 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
if (DefaultConfig.Configs["StandAlone"] == null)
|
||||
{
|
||||
DefaultConfig.AddConfig("StandAlone");
|
||||
}
|
||||
|
||||
config = DefaultConfig.Configs["StandAlone"];
|
||||
if (config != null)
|
||||
@@ -242,7 +247,10 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
if (DefaultConfig.Configs["Network"] == null)
|
||||
{
|
||||
DefaultConfig.AddConfig("Network");
|
||||
}
|
||||
|
||||
config = DefaultConfig.Configs["Network"];
|
||||
if (config != null)
|
||||
{
|
||||
@@ -262,7 +270,10 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
if (DefaultConfig.Configs["RemoteAdmin"] == null)
|
||||
{
|
||||
DefaultConfig.AddConfig("RemoteAdmin");
|
||||
}
|
||||
|
||||
config = DefaultConfig.Configs["RemoteAdmin"];
|
||||
if (config != null)
|
||||
{
|
||||
@@ -270,12 +281,16 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
if (DefaultConfig.Configs["Voice"] == null)
|
||||
{
|
||||
DefaultConfig.AddConfig("Voice");
|
||||
}
|
||||
|
||||
config = DefaultConfig.Configs["Voice"];
|
||||
if (config != null)
|
||||
{
|
||||
config.Set("enabled", "false");
|
||||
}
|
||||
|
||||
return DefaultConfig;
|
||||
|
||||
}
|
||||
@@ -741,18 +756,23 @@ namespace OpenSim
|
||||
return;
|
||||
}
|
||||
|
||||
if (null != inventoryFolder)
|
||||
if (null == inventoryFolder)
|
||||
{
|
||||
m_log.InfoFormat("[CONSOLE]: Found folder {0} {1} at {2}", inventoryFolder.Name, inventoryFolder.ID, invPath);
|
||||
}
|
||||
else if (null != inventoryItem)
|
||||
{
|
||||
m_log.InfoFormat("[CONSOLE]: Found item {0} {1} at {2}", inventoryItem.Name, inventoryItem.ID, invPath);
|
||||
if (null == inventoryItem)
|
||||
{
|
||||
m_log.ErrorFormat("[CONSOLE]: Could not find inventory entry at path {0}", invPath);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.InfoFormat("[CONSOLE]: Found item {0} {1} at {2}", inventoryItem.Name, inventoryItem.ID,
|
||||
invPath);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.ErrorFormat("[CONSOLE]: Could not find inventory entry at path {0}", invPath);
|
||||
return;
|
||||
m_log.InfoFormat("[CONSOLE]: Found folder {0} {1} at {2}", inventoryFolder.Name, inventoryFolder.ID,
|
||||
invPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user