/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Main.cs	2012/05/10 15:30:37	116
+++ trunk/RomCheater/Main.cs	2012/05/10 18:12:06	117
@@ -39,7 +39,8 @@
         #endregion
 
 
-        public Main()
+        public Main() : this(false) { }
+        public Main(bool no_console_redirect)
         {
             InitializeComponent();
             load_loggerflags();
@@ -47,8 +48,9 @@
             LoggerInstance.CreateNewLog(false);
             logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
             load_plugins();
+            if (no_console_redirect)
+                LoggerInstance.RedirectConsoleOutput = false;
         }
-
         private void load_loggerflags()
         {
             logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);

 

  ViewVC Help
Powered by ViewVC 1.1.22