scummvm/engines/cge
Orgad Shaneh 7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +02:00
..
bitmap.cpp
bitmap.h
cge_main.cpp
cge_main.h
cge.cpp
cge.h
configure.engine
console.cpp
console.h
credits.pl
detection.cpp
events.cpp
events.h
fileio.cpp
fileio.h
game.cpp
game.h
general.h
metaengine.cpp
module.mk
POTFILES
snail.cpp
snail.h
sound.cpp
sound.h
talk.cpp
talk.h
text.cpp
text.h
vga13h.cpp
vga13h.h
vmenu.cpp
vmenu.h
walk.cpp
walk.h