diff options
author | Paul Gilbert | 2016-07-20 18:49:41 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-20 18:49:41 -0400 |
commit | 1102203396b8e924991fd0dc9990004b5d7f2e63 (patch) | |
tree | b5fd5d015127cec5e894007f0b985570f57edee6 /engines/titanic/core/project_item.cpp | |
parent | a13134b38d1400bfc6746657faf87907f9575e80 (diff) | |
download | scummvm-rg350-1102203396b8e924991fd0dc9990004b5d7f2e63.tar.gz scummvm-rg350-1102203396b8e924991fd0dc9990004b5d7f2e63.tar.bz2 scummvm-rg350-1102203396b8e924991fd0dc9990004b5d7f2e63.zip |
TITANIC: Add missing engine saving functionality
Diffstat (limited to 'engines/titanic/core/project_item.cpp')
-rw-r--r-- | engines/titanic/core/project_item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp index a768d0e955..6596816c14 100644 --- a/engines/titanic/core/project_item.cpp +++ b/engines/titanic/core/project_item.cpp @@ -160,7 +160,7 @@ void CProjectItem::loadGame(int slotId) { // Open either an existing savegame slot or the new game template if (slotId >= 0) { Common::InSaveFile *saveFile = g_system->getSavefileManager()->openForLoading( - Common::String::format("slot%d.gam", slotId)); + g_vm->generateSaveName(slotId)); file.open(saveFile); } else { Common::File *newFile = new Common::File(); @@ -202,7 +202,7 @@ void CProjectItem::loadGame(int slotId) { void CProjectItem::saveGame(int slotId, const CString &desc) { CompressedFile file; Common::OutSaveFile *saveFile = g_system->getSavefileManager()->openForSaving( - Common::String::format("slot%d.gam", slotId)); + g_vm->generateSaveName(slotId)); file.open(saveFile); // Signal the game is being saved |