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 | |
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
-rw-r--r-- | backends/updates/macosx/macosx-updates.h | 4 | ||||
-rw-r--r-- | backends/updates/macosx/macosx-updates.mm | 4 | ||||
-rw-r--r-- | common/updates.h | 4 |
3 files changed, 6 insertions, 6 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) diff --git a/common/updates.h b/common/updates.h index 4c30987c38..8863a58931 100644 --- a/common/updates.h +++ b/common/updates.h @@ -85,14 +85,14 @@ public: * * @param interval The interval. */ - virtual void setUpdateCheckInterval(UpdateInterval interval) {} + virtual void setUpdateCheckInterval(int interval) {} /** * Gets the update check interval. * * @return the update check interval. */ - virtual UpdateInterval getUpdateCheckInterval() { return kUpdateIntervalNotSupported; } + virtual int getUpdateCheckInterval() { return kUpdateIntervalNotSupported; } }; } // End of namespace Common |