ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 814 by william, Tue Apr 15 15:58:50 2014 UTC vs.
Revision 815 by william, Tue Apr 15 16:34:03 2014 UTC

--- trunk/RomCheater/Main.cs	2014/04/15 15:58:50	814
+++ trunk/RomCheater/Main.cs	2014/04/15 16:34:03	815
@@ -453,8 +453,16 @@ namespace RomCheater
         private void load_loggerflags()
         {
 #warning LoggingFlags setting needs to be changed to Uint32 instead of Uint16
-            logging_level = (LogLevel)(Logging.Properties.Settings.Default.LoggingFlags);            
-           logging_level = new LoggingFlagsConverter(Logging.Properties.Settings.Default.LoggingFlags).ConvertFlags();
+
+            bool upgraded_flags = Logging.Properties.Settings.Default.UpgradedLogLevel;
+            if (!upgraded_flags)
+            {
+                logging_level = new LoggingFlagsConverter(Logging.Properties.Settings.Default.LoggingFlags).ConvertFlags();
+                Logging.Properties.Settings.Default.UpgradedLogLevel = true;
+                Logging.Properties.Settings.Default.gLogLoggingFlags = (uint)logging_level;
+                Logging.Properties.Settings.Default.Save();
+            }
+             logging_level = (LogLevel)Logging.Properties.Settings.Default.gLogLoggingFlags;
 #if FORCE_ALL_LOGGING_FLAGS
             logging_level = LogLevel.kLogLevel_All;
 #endif