From ab1d160ec8f99e472667b83aa4bdd7697b702f3a Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 7 Jun 2016 19:33:00 +0600 Subject: 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. --- engines/prince/detection.h | 1 + engines/prince/saveload.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'engines/prince') diff --git a/engines/prince/detection.h b/engines/prince/detection.h index 3076253cf5..39cfdd96e7 100644 --- a/engines/prince/detection.h +++ b/engines/prince/detection.h @@ -121,6 +121,7 @@ public: virtual bool hasFeature(MetaEngineFeature f) 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; }; diff --git a/engines/prince/saveload.cpp b/engines/prince/saveload.cpp index d3360badd1..2855bdc4bd 100644 --- a/engines/prince/saveload.cpp +++ b/engines/prince/saveload.cpp @@ -105,6 +105,8 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const { return saveList; } +bool PrinceMetaEngine::simpleSaveNames() const { return true; } + SaveStateDescriptor PrinceMetaEngine::querySaveMetaInfos(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName); -- cgit v1.2.3