]> Shamusworld >> Repos - virtualjaguar/commitdiff
Added option to enable logging automagically in Alpine mode.
authorShamus Hammons <jlhamm@acm.org>
Fri, 17 Jan 2014 14:55:03 +0000 (08:55 -0600)
committerShamus Hammons <jlhamm@acm.org>
Fri, 17 Jan 2014 14:55:03 +0000 (08:55 -0600)
src/gui/app.cpp
src/gui/mainwin.cpp

index bbe1333a04cb15af8fdd4624f2f5ce25e30fb8fd..c0e434d15b692de90912f06d7596a6fcb63f13e8 100644 (file)
@@ -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))
index 8eb1285b4fa303a752e6c8d6e1bf52748208396e..762c38660758ba834b733319303546236d545086 100644 (file)
@@ -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;