]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/app.cpp
Added switch to disable untuned tank circuit, for slower computers.
[virtualjaguar] / src / gui / app.cpp
index 7c2037f3a81273eb34e9ec6ddce8ac4cde59fc03..6abfe15cddce199d28d6f4f2ec2ce1000c6e849b 100644 (file)
 #undef main
 #endif
 
+//hm. :-/
+// This is stuff we pass into the mainWindow...
+bool noUntunedTankPlease = false;
+
 // Here's the main application loop--short and simple...
 int main(int argc, char * argv[])
 {
        // Normally, this would be read in from the settings module... :-P
        vjs.hardwareTypeAlpine = false;
+       // This is stuff we pass into the mainWindow...
+//     noUntunedTankPlease = false;
 
        if (argc > 1)
        {
@@ -44,6 +50,7 @@ int main(int argc, char * argv[])
                                "there is enough demand for it. :-)\n");
                        return 0;
                }
+
                if (strcmp(argv[1], "--yarrr") == 0)
                {
                        printf("\n");
@@ -51,11 +58,17 @@ int main(int argc, char * argv[])
                        printf("\n");
                        return 0;
                }
+
                if ((strcmp(argv[1], "--alpine") == 0) || (strcmp(argv[1], "-a") == 0))
                {
                        printf("Alpine Mode enabled.\n");
                        vjs.hardwareTypeAlpine = true;
                }
+
+               if (strcmp(argv[1], "--please-dont-kill-my-computer") == 0)
+               {
+                       noUntunedTankPlease = true;
+               }
        }
 
        Q_INIT_RESOURCE(virtualjaguar); // This must the same name as the exe filename
@@ -94,5 +107,6 @@ int main(int argc, char * argv[])
 App::App(int argc, char * argv[]): QApplication(argc, argv)
 {
        mainWindow = new MainWin();
+       mainWindow->plzDontKillMyComputer = noUntunedTankPlease;
        mainWindow->show();
 }