aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-08-05 17:28:23 +0000
committerJustin Clarke Casey2008-08-05 17:28:23 +0000
commitf2c456c23df63e93d2ad7282203b94deac9f79f5 (patch)
treed6fe25b85e813d75a9de52acba871fb0caf78c92 /OpenSim/Region/Application
parent* refactor: change console base 'component name' to 'default prompt' since th... (diff)
downloadopensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.zip
opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.gz
opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.bz2
opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.xz
* Make currently selected region appear in the region console prompt
* This region is used for single region commands (such as save-xml2)
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs9
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs3
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index e4f1ddc..0dc4560 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -92,6 +92,9 @@ namespace OpenSim
92 m_console = new ConsoleBase("Region", this); 92 m_console = new ConsoleBase("Region", this);
93 MainConsole.Instance = m_console; 93 MainConsole.Instance = m_console;
94 94
95 // For now, start at the 'root' level by default
96 ChangeSelectedRegion(new string[] {"root"});
97
95 base.Startup(); 98 base.Startup();
96 99
97 //Run Startup Commands 100 //Run Startup Commands
@@ -520,11 +523,11 @@ namespace OpenSim
520 523
521 if (!m_sceneManager.TrySetCurrentScene(regionName)) 524 if (!m_sceneManager.TrySetCurrentScene(regionName))
522 { 525 {
523 m_console.Error("Couldn't set current region to: " + regionName); 526 m_console.Error("CONSOLE", "Couldn't set current region to: " + regionName);
524 } 527 }
525 } 528 }
526 529
527 m_console.Notice("CONSOLE", "Selected region: " + GetSelectedRegionName()); 530 m_console.DefaultPrompt = String.Format("Region ({0}) ", GetSelectedRegionName());
528 } 531 }
529 532
530 /// <summary> 533 /// <summary>
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index c718c53..ce5b335 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -138,9 +138,6 @@ namespace OpenSim
138 get { return m_httpServer; } 138 get { return m_httpServer; }
139 } 139 }
140 140
141// 6/28 Cfk: Commented out the new in this next line. It used to be
142// 6/28 cfk: public new uint HttpServerPort and it was causing a warning indicating there should not be a new
143// 6/28 cfk: There is still a new in the declaration above and it is unclear if it should be there or not.
144 public uint HttpServerPort 141 public uint HttpServerPort
145 { 142 {
146 get { return m_httpServerPort; } 143 get { return m_httpServerPort; }