diff -r 31756e21c436 -r 57e99c908e7c QTfrontend/gameuiconfig.cpp --- a/QTfrontend/gameuiconfig.cpp Sun Jul 12 19:12:08 2009 +0000 +++ b/QTfrontend/gameuiconfig.cpp Tue Jul 14 20:02:07 2009 +0000 @@ -64,7 +64,12 @@ Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool()); Form->ui.pageOptions->CBNameWithDate->setChecked(value("misc/appendTimeToRecords", false).toBool()); - + +#ifdef __APPLE__ + //autoupdate + Form->ui.pageOptions->CBAutoUpdate->setChecked(value("misc/autoUpdate", true).toBool()); +#endif + depth = QApplication::desktop()->depth(); if (depth < 16) depth = 16; else if (depth > 16) depth = 32; @@ -120,6 +125,11 @@ setValue("misc/altdamage", isAltDamageEnabled()); setValue("misc/appendTimeToRecords", appendDateTimeToRecordName()); + +#ifdef __APPLE__ + //autoupdate + setValue("misc/autoUpdate", isAutoUpdateEnabled()); +#endif } QRect GameUIConfig::vid_Resolution() @@ -178,6 +188,14 @@ return Form->ui.pageOptions->CBNameWithDate->isChecked(); } +#ifdef __APPLE__ +//autoupdate +bool GameUIConfig::isAutoUpdateEnabled() +{ + return Form->ui.pageOptions->CBAutoUpdate->isChecked(); +} +#endif + quint8 GameUIConfig::timerInterval() { return 35 - Form->ui.pageOptions->fpsedit->value();