From 7d4c625c4ec28d68520550ff4277a28917616269 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Tue, 21 Jan 2014 12:47:36 +0000 Subject: 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. --- engines/queen/detection.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/queen') 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); } -- cgit v1.2.3