]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/app.cpp
Fixed updated joystick handling, first major stab at gamepad profiles.
[virtualjaguar] / src / gui / app.cpp
index c1093fff4e7e4f35aaf3dc0766d740744396573c..bbe1333a04cb15af8fdd4624f2f5ce25e30fb8fd 100644 (file)
@@ -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();