aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 06dc900..501f14e 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -110,7 +110,7 @@ namespace OpenSim
110 : base() 110 : base()
111 { 111 {
112 IConfig startupConfig = configSource.Configs["Startup"]; 112 IConfig startupConfig = configSource.Configs["Startup"];
113 113
114 AddinManager.Initialize("."); 114 AddinManager.Initialize(".");
115 AddinManager.Registry.Update(null); 115 AddinManager.Registry.Update(null);
116 116
@@ -642,7 +642,7 @@ namespace OpenSim
642 string regName = CombineParams(cmdparams, 0); 642 string regName = CombineParams(cmdparams, 0);
643 643
644 Scene killScene; 644 Scene killScene;
645 if(m_sceneManager.TryGetScene(regName, out killScene)) 645 if (m_sceneManager.TryGetScene(regName, out killScene))
646 { 646 {
647 if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID) 647 if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID)
648 { 648 {
@@ -650,7 +650,7 @@ namespace OpenSim
650 } 650 }
651 m_regionData.Remove(killScene.RegionInfo); 651 m_regionData.Remove(killScene.RegionInfo);
652 m_sceneManager.CloseScene(killScene); 652 m_sceneManager.CloseScene(killScene);
653 653
654 } 654 }
655 break; 655 break;
656 656
@@ -768,6 +768,13 @@ namespace OpenSim
768 m_log.Error("Shared Module: " + module.Name); 768 m_log.Error("Shared Module: " + module.Name);
769 } 769 }
770 break; 770 break;
771
772 case "regions":
773 m_sceneManager.ForEachScene(delegate(Scene scene)
774 {
775 Console.WriteLine("Region Name: " + scene.RegionInfo.RegionName + " , Region XLoc: " + scene.RegionInfo.RegionLocX + " , Region YLoc: " + scene.RegionInfo.RegionLocY);
776 });
777 break;
771 } 778 }
772 } 779 }
773 780