diff options
author | Eugene Sandulenko | 2016-03-30 19:27:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-03-30 19:27:59 +0200 |
commit | 73784c6a8488fef1ca7e6971a12868735d606de7 (patch) | |
tree | 7189644cbe7087e7c3b3e09ec74252ae315f4c5c /backends/updates | |
parent | bd249ee32489140d4556e9107adfaaa695a84f4a (diff) | |
download | scummvm-rg350-73784c6a8488fef1ca7e6971a12868735d606de7.tar.gz scummvm-rg350-73784c6a8488fef1ca7e6971a12868735d606de7.tar.bz2 scummvm-rg350-73784c6a8488fef1ca7e6971a12868735d606de7.zip |
UPDATES: Made interval set/get functions accept normal integers
Diffstat (limited to 'backends/updates')
-rw-r--r-- | backends/updates/macosx/macosx-updates.h | 4 | ||||
-rw-r--r-- | backends/updates/macosx/macosx-updates.mm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/updates/macosx/macosx-updates.h b/backends/updates/macosx/macosx-updates.h index fd2d1f46f5..9f541ad02a 100644 --- a/backends/updates/macosx/macosx-updates.h +++ b/backends/updates/macosx/macosx-updates.h @@ -39,8 +39,8 @@ public: virtual void setAutomaticallyChecksForUpdates(UpdateState state); virtual UpdateState getAutomaticallyChecksForUpdates(); - virtual void setUpdateCheckInterval(UpdateInterval interval); - virtual UpdateInterval getUpdateCheckInterval(); + virtual void setUpdateCheckInterval(int interval); + virtual int getUpdateCheckInterval(); }; #endif diff --git a/backends/updates/macosx/macosx-updates.mm b/backends/updates/macosx/macosx-updates.mm index a94f1c21fd..c13f05f1c6 100644 --- a/backends/updates/macosx/macosx-updates.mm +++ b/backends/updates/macosx/macosx-updates.mm @@ -103,14 +103,14 @@ Common::UpdateManager::UpdateState MacOSXUpdateManager::getAutomaticallyChecksFo return kUpdateStateDisabled; } -void MacOSXUpdateManager::setUpdateCheckInterval(UpdateInterval interval) { +void MacOSXUpdateManager::setUpdateCheckInterval(int interval) { if (interval == kUpdateIntervalNotSupported) return; [sparkleUpdater setUpdateCheckInterval:(NSTimeInterval)interval]; } -Common::UpdateManager::UpdateInterval MacOSXUpdateManager::getUpdateCheckInterval() { +int MacOSXUpdateManager::getUpdateCheckInterval() { // This is kind of a hack but necessary, as the value stored by Sparkle // might have been changed outside of ScummVM (in which case we return the // default interval of one day) |