X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fapp.cpp;h=e878edfc9c206836db892fc13cb7cf572038f230;hb=bfca68337bb71d75f7848922c2d0a73837c923cb;hp=9a2cdbfaddba548b5fef72f0fa73a35275ac319d;hpb=09adab3161f986d5cc8dbeffe15cb6545afa138f;p=virtualjaguar diff --git a/src/gui/app.cpp b/src/gui/app.cpp index 9a2cdbf..e878edf 100644 --- a/src/gui/app.cpp +++ b/src/gui/app.cpp @@ -14,6 +14,7 @@ #include "app.h" #include +#include "log.h" #include "mainwin.h" #include "types.h" @@ -31,14 +32,17 @@ int main(int argc, char * argv[]) } } - Q_INIT_RESOURCE(vj); // This must the same name as the exe filename + Q_INIT_RESOURCE(virtualjaguar); // 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("virtualjaguar.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...