QTfrontend/main.cpp
branchsdl2transition
changeset 9711 7d0329f37181
parent 9163 67334acaaac7
child 11362 ed5a6478e710
equal deleted inserted replaced
9709:9315727c0f1d 9711:7d0329f37181
    35 
    35 
    36 #include "DataManager.h"
    36 #include "DataManager.h"
    37 #include "FileEngine.h"
    37 #include "FileEngine.h"
    38 #include "MessageDialog.h"
    38 #include "MessageDialog.h"
    39 
    39 
       
    40 #include "SDLInteraction.h"
       
    41 
    40 #ifdef _WIN32
    42 #ifdef _WIN32
    41 #include <Shlobj.h>
    43 #include <Shlobj.h>
    42 #elif defined __APPLE__
    44 #elif defined __APPLE__
    43 #include "CocoaInitializer.h"
    45 #include "CocoaInitializer.h"
    44 #endif
    46 #endif
   129     atexit(closeResources);
   131     atexit(closeResources);
   130 
   132 
   131 #ifdef __APPLE__
   133 #ifdef __APPLE__
   132     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
   134     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
   133 #endif
   135 #endif
       
   136 
       
   137     SDLInteraction::instance();
   134 
   138 
   135     HWApplication app(argc, argv);
   139     HWApplication app(argc, argv);
   136 
   140 
   137     QLabel *splash = NULL;
   141     QLabel *splash = NULL;
   138 #if defined Q_OS_WIN
   142 #if defined Q_OS_WIN