X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fapp.cpp;h=c0e434d15b692de90912f06d7596a6fcb63f13e8;hb=62587015fb12ec54b1702bfa17077e4b8af44b19;hp=c1093fff4e7e4f35aaf3dc0766d740744396573c;hpb=10d7ab1fb217c01030a0b637f9a571c1faf61ede;p=virtualjaguar diff --git a/src/gui/app.cpp b/src/gui/app.cpp index c1093ff..c0e434d 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -22,6 +22,7 @@ #include "gamepad.h" #include "log.h" #include "mainwin.h" +#include "profile.h" #include "settings.h" #include "version.h" @@ -48,8 +49,9 @@ QString filename; // Here's the main application loop--short and simple... int main(int argc, char * argv[]) { - // Win32 console redirection, because MS and their band of super geniuses decided - // that nobody would ever launch an app from the command line. :-P + // Win32 console redirection, because MS and their band of super geniuses + // decided that nobody would ever launch an app from the command line. :-P + // [Unfortunately, this doesn't seem to work on Vista/7. :-(] #ifdef __GCCWIN32__ BOOL (WINAPI * AttachConsole)(DWORD dwProcessId); @@ -107,6 +109,7 @@ int main(int argc, char * argv[]) WriteLog("VJ: SDL (joystick, audio) successfully initialized.\n"); App app(argc, argv); // Declare an instance of the application Gamepad::AllocateJoysticks(); + AutoConnectProfiles(); retVal = app.exec(); // And run it! Gamepad::DeallocateJoysticks(); @@ -186,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; } @@ -203,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))