QTfrontend/main.cpp
changeset 13516 d44ca1f04bbe
parent 13304 5ac2bdefa173
child 13517 873b7d32bc97
equal deleted inserted replaced
13515:c5365f05d4de 13516:d44ca1f04bbe
   189 
   189 
   190 #ifdef __APPLE__
   190 #ifdef __APPLE__
   191     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
   191     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
   192 #endif
   192 #endif
   193 
   193 
   194     SDLInteraction::instance();
       
   195 
       
   196     HWApplication app(argc, argv);
   194     HWApplication app(argc, argv);
   197     app.setAttribute(Qt::AA_DontShowIconsInMenus,false);
   195     app.setAttribute(Qt::AA_DontShowIconsInMenus,false);
   198 
   196 
   199     // file engine, to be initialized later
   197     // file engine, to be initialized later
   200     engine = NULL;
   198     engine = NULL;
   412         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   410         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   413         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));
   411         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));
   414     }
   412     }
   415 #endif
   413 #endif
   416 
   414 
       
   415     SDLInteraction::instance();
       
   416 
   417     QString style = "";
   417     QString style = "";
   418     QString fname;
   418     QString fname;
   419 
   419 
   420     checkSeason();
   420     checkSeason();
   421     //For each season, there is an extra stylesheet
   421     //For each season, there is an extra stylesheet