aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/detection.cpp')
-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);