diff options
author | Alexander Tkachev | 2016-07-25 14:32:04 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7 (patch) | |
tree | e98f6ad4dbe2100bed8b328014a89c6080c1e5b8 /gui | |
parent | b8fae56c6733cdb5f6e4f64266ca61105eb3155d (diff) | |
download | scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.tar.gz scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.tar.bz2 scummvm-rg350-b665fc933d7d1c9e32820e5a3f24d0e3456a0ff7.zip |
ALL: Make simpleSaveNames() a MetaEngineFeature
Added it into hasFeature() of all engines which returned `true` in
simpleSaveNames() before.
As mentioned in #788, SCI is not always using simple names, so it
doesn't have such feature now.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/saveload-dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 0bed5f4d5b..ae3612f778 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -245,7 +245,7 @@ void SaveLoadChooserDialog::handleTickle() { Common::Array<Common::String> files = CloudMan.getSyncingFiles(); if (!files.empty()) { { - SaveLoadCloudSyncProgressDialog dialog(_metaEngine ? _metaEngine->simpleSaveNames() : false); + SaveLoadCloudSyncProgressDialog dialog(_metaEngine ? _metaEngine->hasFeature(MetaEngine::kSimpleSavesNames) : false); CloudMan.setSyncTarget(&dialog); int result = dialog.runModal(); if (result == kCancelSyncCmd) { @@ -293,7 +293,7 @@ void SaveLoadChooserDialog::listSaves() { #ifdef USE_LIBCURL //if there is Cloud support, add currently synced files as "locked" saves in the list - if (_metaEngine->simpleSaveNames()) { + if (_metaEngine->hasFeature(MetaEngine::kSimpleSavesNames)) { Common::String pattern = _target + ".###"; Common::Array<Common::String> files = CloudMan.getSyncingFiles(); //returns empty array if not syncing for (uint32 i = 0; i < files.size(); ++i) { |