From: Shamus Hammons Date: Fri, 17 Jan 2014 14:55:03 +0000 (-0600) Subject: Added option to enable logging automagically in Alpine mode. X-Git-Tag: 2.1.1~15 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=virtualjaguar;a=commitdiff_plain;h=00f18c4ebbfda2eb5a398cc3166c6ef1692c4f30 Added option to enable logging automagically in Alpine mode. --- diff --git a/src/gui/app.cpp b/src/gui/app.cpp index bbe1333..c0e434d 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -189,7 +189,7 @@ bool ParseCommandLine(int argc, char * argv[]) " -z Run Virtual Jaguar without \"snow\"\n" "\n" "Invoking Virtual Jagaur with no filename will cause it to boot up\n" - "with the VJ GUI.\n" + "with the VJ GUI. Using Alpine mode will enable log file.\n" "\n"); return false; } @@ -206,6 +206,8 @@ bool ParseCommandLine(int argc, char * argv[]) { printf("Alpine Mode enabled.\n"); vjs.hardwareTypeAlpine = true; + // We also enable logging as well :-) + useLogfile = true; } if ((strcmp(argv[i], "--please-dont-kill-my-computer") == 0) || (strcmp(argv[i], "-z") == 0)) diff --git a/src/gui/mainwin.cpp b/src/gui/mainwin.cpp index 8eb1285..762c386 100644 --- a/src/gui/mainwin.cpp +++ b/src/gui/mainwin.cpp @@ -663,6 +663,16 @@ void MainWin::Configure(void) // void MainWin::Timer(void) { +#if 0 +static uint32_t ntscTickCount; + if (vjs.hardwareTypeNTSC) + { + ntscTickCount++; + ntscTickCount %= 3; + timer->start(16 + (ntscTickCount == 0 ? 1 : 0)); + } +#endif + if (!running) return;