diff options
author | Max Horn | 2008-11-05 15:41:12 +0000 |
---|---|---|
committer | Max Horn | 2008-11-05 15:41:12 +0000 |
commit | fe2935ad4b550afa68977169140267ef2ef4a3da (patch) | |
tree | bd442c3ffe15d1dc66c3eb7018e304e697bbedaf /engines/game.h | |
parent | 79614d28b630e8176dc9692fa4f7b14f8338c2c4 (diff) | |
download | scummvm-rg350-fe2935ad4b550afa68977169140267ef2ef4a3da.tar.gz scummvm-rg350-fe2935ad4b550afa68977169140267ef2ef4a3da.tar.bz2 scummvm-rg350-fe2935ad4b550afa68977169140267ef2ef4a3da.zip |
Got rid of the unused 'filename' attribute in SaveStateDescriptor
svn-id: r34905
Diffstat (limited to 'engines/game.h')
-rw-r--r-- | engines/game.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/engines/game.h b/engines/game.h index 1334453131..9a8c25e35b 100644 --- a/engines/game.h +++ b/engines/game.h @@ -102,7 +102,7 @@ public: /** * A hashmap describing details about a given save state. * TODO - * Guaranteed to contain save_slot, filename and description values. + * Guaranteed to contain save_slot and description values. * Additional ideas: Playtime, creation date, thumbnail, ... */ class SaveStateDescriptor : public Common::StringMap { @@ -113,21 +113,18 @@ public: SaveStateDescriptor() : _thumbnail() { setVal("save_slot", "-1"); // FIXME: default to 0 (first slot) or to -1 (invalid slot) ? setVal("description", ""); - setVal("filename", ""); } - SaveStateDescriptor(int s, const Common::String &d, const Common::String &f) : _thumbnail() { + SaveStateDescriptor(int s, const Common::String &d) : _thumbnail() { char buf[16]; sprintf(buf, "%d", s); setVal("save_slot", buf); setVal("description", d); - setVal("filename", f); } - SaveStateDescriptor(const Common::String &s, const Common::String &d, const Common::String &f) : _thumbnail() { + SaveStateDescriptor(const Common::String &s, const Common::String &d) : _thumbnail() { setVal("save_slot", s); setVal("description", d); - setVal("filename", f); } /** The saveslot id, as it would be passed to the "-x" command line switch. */ @@ -142,12 +139,6 @@ public: /** A human readable description of the save state (read-only variant). */ const Common::String &description() const { return getVal("description"); } - /** The filename of the savestate, for use with the SaveFileManager API. */ - Common::String &filename() { return getVal("filename"); } - - /** The filename of the savestate, for use with the SaveFileManager API (read-only variant). */ - const Common::String &filename() const { return getVal("filename"); } - /** Optional entries only included when querying via MetaEngine::querySaveMetaInfo */ /** |