equal
deleted
inserted
replaced
53 #include "playrecordpage.h" |
53 #include "playrecordpage.h" |
54 #include "input_ip.h" |
54 #include "input_ip.h" |
55 #include "ammoSchemeModel.h" |
55 #include "ammoSchemeModel.h" |
56 #include "bgwidget.h" |
56 #include "bgwidget.h" |
57 |
57 |
58 #ifdef __APPLE__ |
58 #ifdef SPARKLE_ENABLED |
59 //autoupdate |
|
60 #include "CocoaInitializer.h" |
59 #include "CocoaInitializer.h" |
61 #include "SparkleAutoUpdater.h" |
60 #include "SparkleAutoUpdater.h" |
62 #endif |
61 #endif |
63 |
62 |
64 // I started handing this down to each place it touches, but it was getting ridiculous |
63 // I started handing this down to each place it touches, but it was getting ridiculous |
79 |
78 |
80 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
79 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
81 |
80 |
82 namegen = new HWNamegen(); |
81 namegen = new HWNamegen(); |
83 |
82 |
84 #ifdef __APPLE__ |
83 #ifdef SPARKLE_ENABLED |
85 //autoupdate |
|
86 AutoUpdater* updater; |
84 AutoUpdater* updater; |
87 CocoaInitializer initializer; |
85 CocoaInitializer initializer; |
88 updater = new SparkleAutoUpdater("http://files.getdropbox.com/u/24468/appcast.xml"); //this has to change before release!!! |
86 updater = new SparkleAutoUpdater("http://files.getdropbox.com/u/24468/appcast.xml"); //this has to change before release!!! |
89 if(updater && config->isAutoUpdateEnabled()) |
87 if(updater && config->isAutoUpdateEnabled()) |
90 updater->checkForUpdates(); |
88 updater->checkForUpdates(); |