aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-06 12:22:22 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf1a56eaf3666a6535ff0d1654e4e014249933452 (patch)
treee48d1598f023d0915fb3d559fb6648b0f6d3e1a0 /engines/cge
parent6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8 (diff)
downloadscummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.tar.gz
scummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.tar.bz2
scummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.zip
GUI: Show "locked" saves during sync
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/detection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cge/detection.cpp b/engines/cge/detection.cpp
index 82d27f8d54..0c79be51d9 100644
--- a/engines/cge/detection.cpp
+++ b/engines/cge/detection.cpp
@@ -131,6 +131,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 Common::String getSavefilesPattern(Common::String &target) const;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
virtual void removeSaveState(const char *target, int slot) const;
};
@@ -239,6 +240,10 @@ SaveStateList CGEMetaEngine::listSaves(const char *target) const {
return saveList;
}
+Common::String CGEMetaEngine::getSavefilesPattern(Common::String &target) const {
+ return target + ".###";
+}
+
SaveStateDescriptor CGEMetaEngine::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);