/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

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

revision 755 by william, Thu Jun 20 20:04:53 2013 UTC revision 838 by william, Tue Sep 16 00:57:18 2014 UTC
# Line 12  using System.IO; Line 12  using System.IO;
12  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
13  using RomCheater.Core;  using RomCheater.Core;
14  using RomCheater.UserSettingsSupport;  using RomCheater.UserSettingsSupport;
15    using Enterprise.Logging;
16    
17  namespace RomCheater.RVAScratchPad  namespace RomCheater.RVAScratchPad
18  {  {
# Line 47  namespace RomCheater.RVAScratchPad Line 48  namespace RomCheater.RVAScratchPad
48          public Form1(bool no_console_redirect)          public Form1(bool no_console_redirect)
49          {          {
50              InitializeComponent();              InitializeComponent();
51                this.Icon = Core.Properties.Resources.romcheater_icon;
52              SettingsSubscriber = new SettingSubscriber();              SettingsSubscriber = new SettingSubscriber();
53              SettingsSubscriber.AddSubscriber(this, RomCheater.Properties.Settings.Default);                            SettingsSubscriber.AddSubscriber(this, RomCheater.Properties.Settings.Default);              
54              load_loggerflags();              load_loggerflags();
55              SetupDocks();              SetupDocks();
56              //LoggerInstance = m_LogWindow.Logwriter;              //LoggerInstance = m_LogWindow.Logwriter;
57              LoggerInstance = new LogWriter(!no_console_redirect);              LoggerInstance = new LogWriter();
58              LoggerInstance.CreateNewLog(false);              //LoggerInstance.CreateNewLog(false);
59              logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);              //logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
60              load_plugins();              load_plugins();
61              if (no_console_redirect)              //if (no_console_redirect)
62                  LoggerInstance.RedirectConsoleOutput = false;                        //    LoggerInstance.RedirectConsoleOutput = false;          
63          }          }
64          private void load_loggerflags()          private void load_loggerflags()
65          {          {
66              logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);              //logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
67  #if FORCE_ALL_LOGGING_FLAGS  #if FORCE_ALL_LOGGING_FLAGS
68              logger.SetLoggingFlags(loggerflags.ALL);              //logger.SetLoggingFlags(loggerflags.ALL);
69  #endif  #endif
70          }          }
71          private void load_plugins() { load_plugins(false); }          private void load_plugins() { load_plugins(false); }

Legend:
Removed from v.755  
changed lines
  Added in v.838

  ViewVC Help
Powered by ViewVC 1.1.22