equal
deleted
inserted
replaced
34 #include "newnetclient.h" |
34 #include "newnetclient.h" |
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 |
|
40 #include "SDLInteraction.h" |
39 |
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" |
151 atexit(closeResources); |
153 atexit(closeResources); |
152 |
154 |
153 #ifdef __APPLE__ |
155 #ifdef __APPLE__ |
154 cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X. |
156 cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X. |
155 #endif |
157 #endif |
|
158 |
|
159 SDLInteraction::instance(); |
156 |
160 |
157 HWApplication app(argc, argv); |
161 HWApplication app(argc, argv); |
158 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
162 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
159 |
163 |
160 // file engine and splash. to be initialized later |
164 // file engine and splash. to be initialized later |