diff options
author | Eugene Sandulenko | 2018-06-25 23:20:47 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 8ad0f02b414a8ceb5ad802addb80b3255d88dd35 (patch) | |
tree | 0f71217fb6efa8c17bc4c4ad01ef7076fff6ebf3 /engines/pink/pink.cpp | |
parent | f7679c6c9b5e439b48c17ef5e8419b8786c7a4cd (diff) | |
download | scummvm-rg350-8ad0f02b414a8ceb5ad802addb80b3255d88dd35.tar.gz scummvm-rg350-8ad0f02b414a8ceb5ad802addb80b3255d88dd35.tar.bz2 scummvm-rg350-8ad0f02b414a8ceb5ad802addb80b3255d88dd35.zip |
PINK: Properly generate save names
Diffstat (limited to 'engines/pink/pink.cpp')
-rw-r--r-- | engines/pink/pink.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index bddc8505d2..2d8240cdf3 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -261,7 +261,7 @@ void PinkEngine::setCursor(uint cursorIndex) { } Common::Error PinkEngine::loadGameState(int slot) { - Common::SeekableReadStream *in = _saveFileMan->openForLoading(generateSaveName(slot, _desc.gameId)); + Common::SeekableReadStream *in = _saveFileMan->openForLoading(generateSaveName(slot, _targetName.c_str())); if (!in) return Common::kNoGameDataFoundError; @@ -284,7 +284,7 @@ bool PinkEngine::canLoadGameStateCurrently() { } Common::Error PinkEngine::saveGameState(int slot, const Common::String &desc) { - Common::OutSaveFile *out = _saveFileMan->openForSaving(generateSaveName(slot, _desc.gameId)); + Common::OutSaveFile *out = _saveFileMan->openForSaving(generateSaveName(slot, _targetName.c_str())); if (!out) return Common::kUnknownError; |