aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 3c3c153157..b0895aae2d 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -108,6 +108,7 @@ public:
virtual bool hasFeature(MetaEngineFeature f) const;
virtual int getMaximumSaveSlot() const;
+ virtual void removeSaveState(const char *target, int slot) const;
virtual SaveStateList listSaves(const char *target) const;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
@@ -129,6 +130,11 @@ bool HDB::HDBGame::hasFeature(Engine::EngineFeature f) const {
(f == kSupportsSavingDuringRuntime);
}
+void HDBMetaEngine::removeSaveState(const char *target, int slot) const {
+ Common::String fileName = Common::String::format("%s.%03d", target, slot);
+ g_system->getSavefileManager()->removeSavefile(fileName);
+}
+
int HDBMetaEngine::getMaximumSaveSlot() const { return 9; }
SaveStateList HDBMetaEngine::listSaves(const char *target) const {