aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2019-07-23 14:45:15 +0200
committerEugene Sandulenko2019-09-03 17:17:26 +0200
commit0ce52ccc5362de5d63223329af244825b764c5d0 (patch)
tree807d8a0e4a25f2d7c1fa0b4ab354bee03e31b837
parent20a270a5aebc10e5945020b8db6b76e91deb3240 (diff)
downloadscummvm-rg350-0ce52ccc5362de5d63223329af244825b764c5d0.tar.gz
scummvm-rg350-0ce52ccc5362de5d63223329af244825b764c5d0.tar.bz2
scummvm-rg350-0ce52ccc5362de5d63223329af244825b764c5d0.zip
HDB: Implement removeSaveState()
-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 {