diff options
author | Johannes Schickel | 2008-09-11 19:47:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-09-11 19:47:45 +0000 |
commit | 0a35842954b9f1e79a84316deb496a4f4ecacf55 (patch) | |
tree | 43c3ef778cf7b0c0cde00714308afd85a65478df /engines/touche | |
parent | 6fd2cb99db561bf90e785eadf45bf41ace7bf5d8 (diff) | |
download | scummvm-rg350-0a35842954b9f1e79a84316deb496a4f4ecacf55.tar.gz scummvm-rg350-0a35842954b9f1e79a84316deb496a4f4ecacf55.tar.bz2 scummvm-rg350-0a35842954b9f1e79a84316deb496a4f4ecacf55.zip |
Committed my patch #2105593 "Launcher/MetaEngine: Finnished removeSaveState".
svn-id: r34495
Diffstat (limited to 'engines/touche')
-rw-r--r-- | engines/touche/detection.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp index 89655ac9ab..bbc605ba46 100644 --- a/engines/touche/detection.cpp +++ b/engines/touche/detection.cpp @@ -139,6 +139,7 @@ public: virtual bool hasFeature(MetaEngineFeature f) const; virtual bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const; virtual SaveStateList listSaves(const char *target) const; + virtual void removeSaveState(const char *target, int slot) const; }; bool ToucheMetaEngine::hasFeature(MetaEngineFeature f) const { @@ -208,6 +209,16 @@ SaveStateList ToucheMetaEngine::listSaves(const char *target) const { return saveList; } +void ToucheMetaEngine::removeSaveState(const char *target, int slot) const { + char extension[5]; + snprintf(extension, sizeof(extension), ".%d", slot); + + Common::String filename = target; + filename += extension; + + g_system->getSavefileManager()->removeSavefile(filename.c_str()); +} + #if PLUGIN_ENABLED_DYNAMIC(TOUCHE) REGISTER_PLUGIN_DYNAMIC(TOUCHE, PLUGIN_TYPE_ENGINE, ToucheMetaEngine); #else |