[Scummvm-git-logs] scummvm master -> 9b05c206993d3107f98ac5b437801e33ba3c79b7
athrxx
noreply at scummvm.org
Fri Jul 15 23:09:31 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9b05c20699 COMMON: fix bug no. 13703 (KYRA: Legend of Kyrandia 3: Problem with autosave)
Commit: 9b05c206993d3107f98ac5b437801e33ba3c79b7
https://github.com/scummvm/scummvm/commit/9b05c206993d3107f98ac5b437801e33ba3c79b7
Author: athrxx (athrxx at scummvm.org)
Date: 2022-07-16T01:08:51+02:00
Commit Message:
COMMON: fix bug no. 13703 (KYRA: Legend of Kyrandia 3: Problem with autosave)
The warning message was only based on the description of the autosave file. And that description depended on the GUI language setting, since it is a string that gets translated.
Now we also query the _saveType that is set by the metaengine...
Changed paths:
engines/engine.cpp
diff --git a/engines/engine.cpp b/engines/engine.cpp
index a76b8e7e3e0..0975034033d 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -567,7 +567,7 @@ void Engine::handleAutoSave() {
bool Engine::warnBeforeOverwritingAutosave() {
SaveStateDescriptor desc = getMetaEngine()->querySaveMetaInfos(
_targetName.c_str(), getAutosaveSlot());
- if (!desc.isValid() || desc.hasAutosaveName())
+ if (!desc.isValid() || desc.isAutosave())
return true;
Common::U32StringArray altButtons;
altButtons.push_back(_("Overwrite"));
More information about the Scummvm-git-logs
mailing list