]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/app.cpp
Fixed software loading to load independently of Jaguar ROM space, added new
[virtualjaguar] / src / gui / app.cpp
index c407149d8c2d3a402cd146905b4833f93ed84341..f3481e9ab4e74736de0d01d9a2b91017addc7afb 100644 (file)
@@ -19,6 +19,7 @@
 #include <QApplication>
 #include "log.h"
 #include "mainwin.h"
+#include "settings.h"
 #include "types.h"
 
 #ifdef __GCCWIN32__
@@ -29,6 +30,9 @@
 // Here's the main application loop--short and simple...
 int main(int argc, char * argv[])
 {
+       // Normally, this would be read in from the settings module... :-P
+       vjs.hardwareTypeAlpine = false;
+
        if (argc > 1)
        {
                if ((strcmp(argv[1], "--help") == 0) || (strcmp(argv[1], "-h") == 0)
@@ -40,6 +44,11 @@ int main(int argc, char * argv[])
                                "enough demand for it. :-)\n");
                        return 0;
                }
+               if ((strcmp(argv[1], "--alpine") == 0) || (strcmp(argv[1], "-a") == 0))
+               {
+                       printf("Alpine Mode enabled.\n");
+                       vjs.hardwareTypeAlpine = true;
+               }
        }
 
        Q_INIT_RESOURCE(virtualjaguar); // This must the same name as the exe filename