]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/app.cpp
Added logfile logging, ZIP file fishing
[virtualjaguar] / src / gui / app.cpp
index 9a2cdbfaddba548b5fef72f0fa73a35275ac319d..264a79a6f54050ec5e0b238ce5deab0df74a5f22 100644 (file)
@@ -14,6 +14,7 @@
 #include "app.h"
 
 #include <QApplication>
+#include "log.h"
 #include "mainwin.h"
 #include "types.h"
 
@@ -36,9 +37,12 @@ int main(int argc, char * argv[])
        // This is so we can pass this stuff using signal/slot mechanism...
 //ick  int id = qRegisterMetaType<uint32>();
 
+       LogInit("vj.log");                                                      // Init logfile
        App app(argc, argv);                                            // Declare an instance of the application
 
-       return app.exec();                                                      // And run it!
+       int retVal = app.exec();                                        // And run it!
+       LogDone();                                                                      // Close logfile
+       return retVal;
 }
 
 // Main app constructor--we stick globally accessible stuff here...