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...
This commit is contained in:
athrxx 2022-07-16 01:05:06 +02:00
parent d09cfe29eb
commit 5ac3e22c0d

View file

@ -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"));