From 6056247ac3002808c95d7a1c6671c388920ec2ed Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 16 May 2007 17:12:17 +0000 Subject: * removed unused new-login.dat * cleared up verbose/noverbose/disableOutput douple negation confusion in ConsoleBase * 2d chat radius is now 3d chat sphere * removed unused fast 2d radius calc * added chat type 0xFF : broadcast (no sphere checking) * OpenSimMain now exposes its LocalWorld --- OpenSim.Framework.Console/ConsoleBase.cs | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'OpenSim.Framework.Console/ConsoleBase.cs') diff --git a/OpenSim.Framework.Console/ConsoleBase.cs b/OpenSim.Framework.Console/ConsoleBase.cs index c72af45..6a1c53c 100644 --- a/OpenSim.Framework.Console/ConsoleBase.cs +++ b/OpenSim.Framework.Console/ConsoleBase.cs @@ -19,25 +19,13 @@ namespace OpenSim.Framework.Console StreamWriter Log; public conscmd_callback cmdparser; public string componentname; - private bool disableOutput; - - // STUPID HACK ALERT!!!! STUPID HACK ALERT!!!!! - // constype - the type of console to use (see enum ConsoleType) - // sparam - depending on the console type: - // TCP - the IP to bind to (127.0.0.1 if blank) - // Local - param ignored - // and for the iparam: - // TCP - the port to bind to - // Local - param ignored - // LogFile - duh - // componentname - which component of the OGS system? (user, asset etc) - // cmdparser - a reference to a conscmd_callback object - - public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool disableSystemConsole ) + private bool m_silent; + + public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool silent ) { this.componentname = componentname; this.cmdparser = cmdparser; - this.disableOutput = disableSystemConsole; + this.m_silent = silent; System.Console.WriteLine("ServerConsole.cs - creating new local console"); System.Console.WriteLine("Logs will be saved to current directory in " + LogFile); Log = File.AppendText(LogFile); @@ -62,7 +50,7 @@ namespace OpenSim.Framework.Console { Log.WriteLine(format, args); Log.Flush(); - if(!disableOutput) + if(!m_silent) { System.Console.WriteLine(format, args); } @@ -73,7 +61,7 @@ namespace OpenSim.Framework.Console { Log.WriteLine(format, args); Log.Flush(); - if (!disableOutput) + if (!m_silent) { System.Console.WriteLine(format, args); } -- cgit v1.1