X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fgui%2Fapp.cpp;h=6abfe15cddce199d28d6f4f2ec2ce1000c6e849b;hb=d9abe1a157bbd35e8b282927489b687f56048ce6;hp=7c2037f3a81273eb34e9ec6ddce8ac4cde59fc03;hpb=4906545f5d77d6d7a006fa0d765dc0ae522e477f;p=virtualjaguar diff --git a/src/gui/app.cpp b/src/gui/app.cpp index 7c2037f..6abfe15 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -27,11 +27,17 @@ #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(); }