diff options
author | Johannes Schickel | 2011-07-02 20:25:32 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-07-02 21:07:55 +0200 |
commit | 09501be85bee9f686a7815fc0f47a1e16008f38d (patch) | |
tree | 5aecb20411d3300a185214f3a6590888f4559b35 /base/commandLine.cpp | |
parent | a5b0792295f46ebcf5d30df975bd2056bc4a695f (diff) | |
download | scummvm-rg350-09501be85bee9f686a7815fc0f47a1e16008f38d.tar.gz scummvm-rg350-09501be85bee9f686a7815fc0f47a1e16008f38d.tar.bz2 scummvm-rg350-09501be85bee9f686a7815fc0f47a1e16008f38d.zip |
ENGINES: Clean up SaveStateDescriptor.
Now SaveStateDescriptor no longer subclasses HashMap. Instead all possible
saved meta data is included directly into SaveStateDescriptor.
This is slightly less flexible, but we never needed that flexibility so far.
On the other hand it should reduce the memory usage. At least on my system
(Linux/amd64) the old SaveStateDescriptor had a size of 928 and the new
SaveStateDescriptor has a size of 200.
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r-- | base/commandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index a4fefc413a..c831cd08fa 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -662,7 +662,7 @@ static Common::Error listSaves(const char *target) { " ---- ------------------------------------------------------\n"); for (SaveStateList::const_iterator x = saveList.begin(); x != saveList.end(); ++x) { - printf(" %-4s %s\n", x->save_slot().c_str(), x->description().c_str()); + printf(" %-4d %s\n", x->getSaveSlot(), x->getDescription().c_str()); // TODO: Could also iterate over the full hashmap, printing all key-value pairs } } else { |