scummvm/engines/titanic
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
..
carry TITANIC: DE: Adding sound translations 2017-09-20 22:33:18 -04:00
core ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
game TITANIC: Removed unused arrays and fields 2018-03-12 18:56:25 -04:00
gfx TITANIC: DE: Fix sound for music room pitch sliders 2017-10-03 21:29:48 -04:00
messages TITANIC: Cleanup of auto music player classes and messages 2017-10-13 17:51:49 -04:00
moves TITANIC: DE: Add miscellaneous missed sound translations 2017-09-21 20:27:18 -04:00
npcs TITANIC: Show busy cursor when SuccUBus sending or receiving 2017-10-13 20:59:23 -04:00
pet_control ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
sound TITANIC: Fix crash exiting game when music room music is active 2017-10-15 21:14:33 -04:00
star_control TITANIC: Fix memory leak in CStarView 2017-09-27 07:40:28 -04:00
support TITANIC: Fix compilation failure in C++11 mode 2017-11-17 22:47:59 -06:00
true_talk TITANIC: Fix DoorbotScript _stateIndex cycling check 2018-03-17 14:06:26 -04:00
configure.engine TITANIC: Turn off testing for English, turn it on for German 2017-10-08 12:48:21 -04:00
continue_save_dialog.cpp TITANIC: Allow GMM loading from the copyright and continue dialog 2017-09-05 23:01:12 -04:00
continue_save_dialog.h TITANIC: Remap right mouse click to be a left click with Shift held. 2017-07-30 11:39:40 -04:00
debugger.cpp Merge pull request #1010 from dreammaster/debugger_params 2017-09-24 12:18:15 -04:00
debugger.h TITANIC: Added frame debugger command for setting objects' movie frames 2017-08-26 17:58:31 -04:00
detection_tables.h TITANIC: Remove testing flag from German version 2017-11-04 11:38:19 -04:00
detection.cpp ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
events.cpp TITANIC: Reduce header includes for titanic.h 2017-08-24 04:06:54 -07:00
events.h TITANIC: Only skip cutscenes if standard ASCII keys pressed 2017-07-31 22:36:01 -04:00
game_location.cpp
game_location.h
game_manager.cpp TITANIC: Fix leak of movie event structures 2017-09-24 12:15:58 -04:00
game_manager.h TITANIC: Fix crash exiting game when music room music is active 2017-10-15 21:14:33 -04:00
game_state.cpp TITANIC: Fix leaks in CGameState _movieList 2017-09-29 21:16:43 -04:00
game_state.h TITANIC: Fix leaks in CGameState _movieList 2017-09-29 21:16:43 -04:00
game_view.cpp TITANIC: Clarify dirty rect methods in CGameManager 2017-01-14 18:19:12 -05:00
game_view.h TITANIC: Reduce header includes for titanic.h 2017-08-24 04:06:54 -07:00
input_handler.cpp TITANIC: Reduce header includes for titanic.h 2017-08-24 04:06:54 -07:00
input_handler.h TITANIC: Reduce header includes for titanic.h 2017-08-24 04:06:54 -07:00
input_translator.cpp TITANIC: Create new CMovementMsg for new movement functionality 2017-08-06 11:58:06 -04:00
input_translator.h TITANIC: Introduce movement via arrow keys 2017-08-04 22:00:49 -04:00
main_game_window.cpp TITANIC: Fix access after free in shutdown 2017-09-24 10:55:50 -04:00
main_game_window.h TITANIC: Fix struct vs class forward declaration warning 2017-08-25 20:48:55 -04:00
module.mk TITANIC: DE: Merged German NPC script subclasses back in 2017-09-23 21:18:25 -04:00
room_flags.cpp TITANIC: Add missing strings for Floor & Room # to titanic.dat 2017-10-15 21:20:09 -04:00
room_flags.h TITANIC: Add missing strings for Floor & Room # to titanic.dat 2017-10-15 21:20:09 -04:00
titanic.cpp ALL: Load savegame thumbnail only when necessary 2018-04-07 09:26:20 +02:00
titanic.h TITANIC: Create a separate g_language global in it's own file 2017-09-17 16:24:26 -04:00
translation.h TITANIC: Add translation.h missing from prior commit 2017-09-17 16:32:09 -04:00