X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fapp.cpp;h=264a79a6f54050ec5e0b238ce5deab0df74a5f22;hb=68e8886a9aaf48fcc130334d8cf4fe35a4534a02;hp=3bd8c6ce8aade20fcbec73113227635b2309521a;hpb=94e1e961b57f253b760298ab0bae96a7de6d20fa;p=virtualjaguar diff --git a/src/gui/app.cpp b/src/gui/app.cpp index 3bd8c6c..264a79a 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -14,7 +14,9 @@ #include "app.h" #include +#include "log.h" #include "mainwin.h" +#include "types.h" // Here's the main application loop--short and simple... int main(int argc, char * argv[]) @@ -32,10 +34,15 @@ int main(int argc, char * argv[]) Q_INIT_RESOURCE(vj); // This must the same name as the exe filename //or is it the .qrc filename??? + // This is so we can pass this stuff using signal/slot mechanism... +//ick int id = qRegisterMetaType(); + 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...