From 00f18c4ebbfda2eb5a398cc3166c6ef1692c4f30 Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Fri, 17 Jan 2014 08:55:03 -0600 Subject: [PATCH] Added option to enable logging automagically in Alpine mode. --- src/gui/app.cpp | 4 +++- src/gui/mainwin.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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; -- 2.37.2