diff options
author | D G Turner | 2014-01-21 12:47:36 +0000 |
---|---|---|
committer | D G Turner | 2014-02-10 14:59:44 +0000 |
commit | 7d4c625c4ec28d68520550ff4277a28917616269 (patch) | |
tree | f4a57b754112a87efa8a81220a4a2a69122c8f17 /engines/queen | |
parent | d1b7fd9b87caa51d8bc770e55ae022593247b49a (diff) | |
download | scummvm-rg350-7d4c625c4ec28d68520550ff4277a28917616269.tar.gz scummvm-rg350-7d4c625c4ec28d68520550ff4277a28917616269.tar.bz2 scummvm-rg350-7d4c625c4ec28d68520550ff4277a28917616269.zip |
QUEEN: Switch all savegame usage back to "queen.sXX" format.
The target is not just a bare "queen", but is postfixed by language
variant (and CD if used).
Using this for the savegame naming would be good as it allows several
language variants to have different co-existing savegame sets without
causing conflicts. However, if the savegame format is the same across
all language variants, then using the same naming allows easier
switching between languages if testing.
Currently the queen engine uses a single set of savegames named in the
format "queen.sXX" which are used for all languages, as the format
appears to be compatible across language variants. This may require
changing in future, if a variant with incompatible savegame format
is discovered.
Diffstat (limited to 'engines/queen')
-rw-r--r-- | engines/queen/detection.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/queen/detection.cpp b/engines/queen/detection.cpp index 24df9928c6..e79da0acde 100644 --- a/engines/queen/detection.cpp +++ b/engines/queen/detection.cpp @@ -475,7 +475,7 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray filenames; char saveDesc[32]; - Common::String pattern = target + ".s??"; + Common::String pattern("queen.s??"); filenames = saveFileMan->listSavefiles(pattern); sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) @@ -501,8 +501,7 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const { } void QueenMetaEngine::removeSaveState(const char *target, int slot) const { - Common::String filename = target; - filename += Common::String::format(".s%02d", slot); + Common::String filename = Common::String::format("queen.s%02d", slot); g_system->getSavefileManager()->removeSavefile(filename); } |