From 54c6a920baa0ef02a9ea09e08cc1effcef3b0a3a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 7 Feb 2009 12:25:39 +0000 Subject: Replace the console for all OpenSim apps with a new console featuring command line editing, context sensitive help (press ? at any time), command line history, a new plugin command system and new appender features thet let you type while the console is scrolling. Seamlessly integrates the ICommander interfaces. --- OpenSim/Region/Application/Application.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Application/Application.cs') diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index a8e1499..7a427dc 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -34,6 +34,7 @@ using log4net.Config; using Nini.Config; using OpenSim.Framework; using OpenSim.Framework.Console; +using OpenSim.Region.Framework.Scenes; namespace OpenSim { @@ -46,6 +47,8 @@ namespace OpenSim public static bool m_saveCrashDumps = false; public static string m_crashDir = "crashes"; + protected static OpenSimBase m_sim = null; + //could move our main function into OpenSimMain and kill this class public static void Main(string[] args) { @@ -93,18 +96,18 @@ namespace OpenSim if (background) { - OpenSimBase sim = new OpenSimBackground(configSource); - sim.Startup(); + m_sim = new OpenSimBackground(configSource); + m_sim.Startup(); } else { - OpenSimBase sim = null; + m_sim = null; if (hgrid) - sim = new HGOpenSimNode(configSource); + m_sim = new HGOpenSimNode(configSource); else - sim = new OpenSim(configSource); + m_sim = new OpenSim(configSource); - sim.Startup(); + m_sim.Startup(); while (true) { -- cgit v1.1