]> git.gag.com Git - debian/openrocket/blobdiff - src/net/sf/openrocket/startup/Startup.java
SafetyMutex and rocket optimization updates
[debian/openrocket] / src / net / sf / openrocket / startup / Startup.java
index 2d2d492e0e9d8c09c81f210b51ef196cc88a4349..658f70c0b05a42d6ecd47765302eac39d13bc556 100644 (file)
@@ -62,6 +62,9 @@ public class Startup {
        
        public static void main(final String[] args) throws Exception {
                
+               // Check for "openrocket.debug" property before anything else
+               checkDebugStatus();
+               
                // Initialize logging first so we can use it
                initializeLogging();
                
@@ -91,6 +94,18 @@ public class Startup {
        
 
 
+       private static void checkDebugStatus() {
+               if (System.getProperty("openrocket.debug") != null) {
+                       System.setProperty("openrocket.log.stdout", "VBOSE");
+                       System.setProperty("openrocket.log.tracelevel", "VBOSE");
+                       System.setProperty("openrocket.debug.menu", "true");
+                       System.setProperty("openrocket.debug.motordigest", "true");
+               }
+       }
+       
+       
+
+
        private static void runMain(String[] args) {
                
                // Initialize the splash screen with version info