aboutsummaryrefslogtreecommitdiff
path: root/backends/updates/macosx/macosx-updates.mm
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-30 19:27:59 +0200
committerEugene Sandulenko2016-03-30 19:27:59 +0200
commit73784c6a8488fef1ca7e6971a12868735d606de7 (patch)
tree7189644cbe7087e7c3b3e09ec74252ae315f4c5c /backends/updates/macosx/macosx-updates.mm
parentbd249ee32489140d4556e9107adfaaa695a84f4a (diff)
downloadscummvm-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/macosx/macosx-updates.mm')
-rw-r--r--backends/updates/macosx/macosx-updates.mm4
1 files changed, 2 insertions, 2 deletions
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)