diff options
author | Alexander Tkachev | 2016-06-07 19:33:00 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | ab1d160ec8f99e472667b83aa4bdd7697b702f3a (patch) | |
tree | 7b52ca273b683c485ce59a85b8722a6f43ba8014 /engines/gnap | |
parent | bf71ba9a1c98b39647edb248e913322ee38a0af5 (diff) | |
download | scummvm-rg350-ab1d160ec8f99e472667b83aa4bdd7697b702f3a.tar.gz scummvm-rg350-ab1d160ec8f99e472667b83aa4bdd7697b702f3a.tar.bz2 scummvm-rg350-ab1d160ec8f99e472667b83aa4bdd7697b702f3a.zip |
ALL: Add MetaEngine::simpleSaveNames()
Engines with "simple" savenames would support "Run in background" in
save/load dialog and gradual save slots unlocking. Other engines
save/load feature would be locked until save sync is over.
Diffstat (limited to 'engines/gnap')
-rw-r--r-- | engines/gnap/detection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gnap/detection.cpp b/engines/gnap/detection.cpp index 7e4ab56d1f..523a8b6d1c 100644 --- a/engines/gnap/detection.cpp +++ b/engines/gnap/detection.cpp @@ -78,6 +78,7 @@ public: virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; virtual int getMaximumSaveSlot() const; virtual SaveStateList listSaves(const char *target) const; + virtual bool simpleSaveNames() const; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; virtual void removeSaveState(const char *target, int slot) const; }; @@ -141,6 +142,8 @@ SaveStateList GnapMetaEngine::listSaves(const char *target) const { return saveList; } +bool GnapMetaEngine::simpleSaveNames() const { return true; } + SaveStateDescriptor GnapMetaEngine::querySaveMetaInfos(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName); |