diff options
author | Thierry Crozat | 2016-09-18 05:31:29 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-09-18 05:31:29 +0100 |
commit | 33d1c558663f0b7ed5eafec999c506a55307ff27 (patch) | |
tree | 555cfde2511b3e892fba3c0a6b6ed4913c197c25 /backends | |
parent | 1fd4dbfdce66bc515e43c062e5b142e33391b131 (diff) | |
download | scummvm-rg350-33d1c558663f0b7ed5eafec999c506a55307ff27.tar.gz scummvm-rg350-33d1c558663f0b7ed5eafec999c506a55307ff27.tar.bz2 scummvm-rg350-33d1c558663f0b7ed5eafec999c506a55307ff27.zip |
BACKENDS: Ignore timestamps for inexistent files in DefaultSaveFileManager
This fixes a bug in the synchronisation of the save files to the cloud when
the timestamps file contains entries for files that do no longer exist. In such
a case the synchronisation would fail.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/saves/default/default-saves.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp index 8a7fba46f7..72d65df6e2 100644 --- a/backends/saves/default/default-saves.cpp +++ b/backends/saves/default/default-saves.cpp @@ -330,7 +330,8 @@ Common::HashMap<Common::String, uint32> DefaultSaveFileManager::loadTimestamps() //parse timestamp uint32 timestamp = buffer.asUint64(); if (buffer == "" || timestamp == 0) break; - timestamps[filename] = timestamp; + if (timestamps.contains(filename)) + timestamps[filename] = timestamp; } delete file; |