#include "gamepad.h"
#include "log.h"
#include "mainwin.h"
+#include "profile.h"
#include "settings.h"
#include "version.h"
// 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);
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();
" -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;
}
{
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))