scummvm/engines
Adrian Frühwirth 00e59a3122 ALL: Load savegame thumbnail only when necessary
This commit introduces the following changes:

1. Graphics::loadThumbnail()

   Now returns a boolean and takes a new argument skipThumbnail which
   defaults to false. In case of true, loadThumbnail() reads past the
   thumbnail data in the input stream instead of actually loading the
   thumbnail. This simplifies savegame handling where, up until now,
   many engines always read the whole savegame metadata (including
   the thumbnail) and then threw away the thumbnail when not needed
   (which is in almost all cases, the most common exception being
   MetaEngine::querySaveMetaInfos() which is responsible for loading
   savegame metadata for displaying it in the GUI launcher.

2. readSavegameHeader()

   Engines which already implement such a method (name varies) now take
   a new argument skipThumbnail (default: true) which is passed
   through to loadThumbnail(). This means that the default case for
   readSavegameHeader() is now _not_ loading the thumbnail from a
   savegame and just reading past it. In those cases, e.g.
   querySaveMetaInfos(), where we actually are interested in loading
   the thumbnail readSavegameHeader() needs to explicitely be called
   with skipThumbnail == false.

   Engines whose readSavegameHeader() (name varies) already takes an
   argument loadThumbnail have been adapted to have a similar
   prototype and semantics.
   I.e. readSaveHeader(in, loadThumbnail, header) now is
   readSaveHeader(in, header, skipThumbnail).

3. Error handling

   Engines which previously did not check the return value of
   readSavegameHeader() (name varies) now do so ensuring that possibly
   broken savegames (be it a broken thumbnail or something else) don't
   make it into the GUI launcher list in the first place.
2018-04-07 09:26:20 +02:00
..
access ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
adl ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
agi ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
agos ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
avalanche ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
bbvs ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
bladerunner BLADERUNNER: Fix memory leaks 2018-04-04 22:41:12 +02:00
cge ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
cge2 ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
chewy ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
cine BACKENDS: Fix window sizing of games that switch between multiple resolutions 2017-10-07 12:30:29 -05:00
composer COMPOSER: Be strict about matching digits in savegame filenames 2018-03-26 01:26:15 +02:00
cruise ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
cryo CRYO: Stop packing struct containing pointers 2018-01-12 00:44:48 -06:00
director ALL: Fix misuse of comma operator 2017-11-10 09:57:03 -06:00
dm ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
draci ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
drascula ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
dreamweb ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
fullpipe ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
gnap ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
gob GOB: Mark intentional fallthrough in switch statements 2018-02-13 13:29:03 +01:00
groovie ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
hopkins ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
hugo ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
kyra ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
lab ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
lastexpress JANITORIAL: Silence GCC 7 fallthrough warnings 2018-03-23 18:34:17 +01:00
lilliput ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
lure Merge pull request #1041 from criezy/variadic-undefined 2017-11-10 22:20:54 +00:00
macventure ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
made ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
mads ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
mohawk ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
mortevielle ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
neverhood ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
parallaction ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
pegasus PEGASUS: Add override specifier 2018-03-28 12:29:28 +02:00
plumbers PLUMBERS: Remove unused parameter 2018-03-26 10:27:33 +02:00
prince ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
queen ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
saga ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sci ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
scumm ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sherlock ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sky SKY: Fix setSub incorrectly falling through to subsequent cases 2017-12-08 12:41:16 -06:00
sludge SLUDGE: Move global variable pastePalette to TextManager and refactor a little 2018-04-01 18:02:14 +02:00
supernova ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sword1 ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sword2 ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
sword25 JANITORIAL: Silence GCC 7 fallthrough warnings 2018-03-23 18:34:17 +01:00
teenagent ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
testbed TESTBED: Only build cloud tests if libcurl is available too 2017-10-29 00:05:51 +02:00
tinsel TINSEL: Remove now duplicate VER macro 2018-02-01 14:42:33 +01:00
titanic ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
toltecs ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
tony ALL: Remove obsolete register keyword 2017-12-03 20:27:42 -06:00
toon ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
touche ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
tsage ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
tucker ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
voyeur ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
wage WAGE: Improve error message 2017-12-08 11:41:32 +00:00
wintermute ENGINES: Remove default1x scaler flag 2017-10-07 12:30:29 -05:00
xeen ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
zvision ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
advancedDetector.cpp ENGINES: Improve output of unknown game variant detection 2017-11-10 09:57:41 -06:00
advancedDetector.h ENGINES: Make AdvancedMetaEngine::detectGame() virtual 2018-02-02 22:18:25 +01:00
dialogs.cpp GUI: Fully hide GMM save/load buttons if not supported by engine 2017-05-25 16:23:34 +02:00
dialogs.h
engine.cpp BACKENDS: Fix window sizing of games that switch between multiple resolutions 2017-10-07 12:30:29 -05:00
engine.h
game.cpp
game.h
logo_data.h
metaengine.h BASE: Remove bad casts between incompatible Plugin types 2017-12-03 20:26:38 -06:00
module.mk
obsolete.cpp
obsolete.h
savestate.cpp COMMON: Add limited support for custom deleters to ScopedPtr 2017-11-18 22:35:12 +01:00
savestate.h FULLPIPE: Fix memory leak of save game thumbnail 2017-11-18 22:35:12 +01:00
util.h BACKENDS: Fix window sizing of games that switch between multiple resolutions 2017-10-07 12:30:29 -05:00