diff options
author | Justin Clarke Casey | 2008-08-05 17:28:23 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-08-05 17:28:23 +0000 |
commit | f2c456c23df63e93d2ad7282203b94deac9f79f5 (patch) | |
tree | d6fe25b85e813d75a9de52acba871fb0caf78c92 /OpenSim/Region/Application/OpenSim.cs | |
parent | * refactor: change console base 'component name' to 'default prompt' since th... (diff) | |
download | opensim-SC_OLD-f2c456c23df63e93d2ad7282203b94deac9f79f5.zip opensim-SC_OLD-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.gz opensim-SC_OLD-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 9 |
1 files changed, 6 insertions, 3 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> |