aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.cpp
AgeCommit message (Collapse)Author
2018-04-07ALL: Load savegame thumbnail only when necessaryAdrian Frühwirth
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.
2016-03-14MADS: Changed engine to use Graphics::ManagedSurfacePaul Gilbert
2015-11-24MADS: Refactor camera codeStrangerke
2015-11-24MADS: initialize some variablesStrangerke
2015-11-16MADS: Implement some more Camera codeStrangerke
2015-11-16MADS: Some work on CameraStrangerke
2015-11-12MADS: Implement syncTimers, add SyncType enum, modify all the calls to ↵Strangerke
syncTimers
2015-10-29MADS: Phantom: Implement scene 310Strangerke
2015-10-19MADS: Phantom: Implement scene 109Strangerke
2015-10-15MADS: Add logic for scene 103, some rework on animationsStrangerke
2015-09-21MADS: Allow multiple animations for Phantom and later gamesStrangerke
2015-05-09MADS: Make GPL header consistent with what we normally use.Johannes Schickel
2015-04-09MADS: Plug some memory leaksFilippos Karapetis
Surfaces should be freed (to free their inner allocated surface buffers) before being deleted
2015-04-05MADS: Fix placement of blowgun in easy modePaul Gilbert
2015-03-14MADS: Fix crash in stream crossing death, simplify SpriteSets classPaul Gilbert
2015-03-07MADS: Refactoring of text/animation views to show outside game loopPaul Gilbert
2015-02-21MADS: Implement scroll wheel support for scrolling inventoryPaul Gilbert
2015-02-14MADS: Allow Escape key to close game options dialogPaul Gilbert
2015-01-17MADS: Renamings of Layer and a transition typePaul Gilbert
2014-10-28MADS: Remove trailing whitespaceFilippos Karapetis
2014-10-18MADS: Remove deprecated code from AnimationView and a bunch of out-of-date TODOsPaul Gilbert
2014-06-28MADS: Cleanup of fields and constants usagePaul Gilbert
2014-06-28MADS: Create savegame thumbnail from scenes before opening in-game dialogsPaul Gilbert
2014-06-07MADS: More setup code for the difficulty dialogPaul Gilbert
2014-06-07MADS: Remove unused variableTorbjörn Andersson
2014-06-06MADS: Refactoring and cleanup of the game startup codePaul Gilbert
2014-06-03MADS: Remove redundant Palette::close methodPaul Gilbert
2014-06-01MADS: Properly set the scene revisited flag when loading a saved gameFilippos Karapetis
2014-05-30MADS: Change order of savegame loading to fix scene 318Paul Gilbert
2014-05-27MADS: Initialize several other variablesStrangerke
2014-05-26MADS: Fix displaying multi-line messages in conversation with village girlPaul Gilbert
2014-05-27MADS: Slight formatting fixes.Johannes Schickel
2014-05-24MADS: Implement screen shakingPaul Gilbert
2014-05-24MADS: Fix checks for assets count when calling releasePlayerSpritesPaul Gilbert
2014-05-20MADS: Completely remove synchronizeString in favour of syncStringPaul Gilbert
2014-05-19MADS: Some more British -> American English modificationsStrangerke
2014-05-18MADS: Replace _ongoingGame by the use of quitGame()Strangerke
2014-05-18MADS: Implement scene 803, add an ongoingGame global flag to exit the ↵Strangerke
multiple game loops
2014-05-12MADS: Hook in the section 1 sound playerPaul Gilbert
2014-05-08MADS: Remove trailing whitespaceFilippos Karapetis
2014-05-03MADS: Default to first inventory item after loading a savegamePaul Gilbert
2014-05-03MADS: Savegames are now workingPaul Gilbert
2014-05-02MADS: Misc savegame fixes and added meta query infoPaul Gilbert
2014-05-01MADS: Add some further savegame loading logicPaul Gilbert
2014-05-01MADS: Implemented more savegame synchronizationPaul Gilbert
2014-05-01MADS: Default game to impossible difficulty by defaultPaul Gilbert
2014-04-27MADS: Add skeleton classes for Phantom and DragonsphereFilippos Karapetis
2014-04-27MADS: Set Rex to start from scene 101, like the originalFilippos Karapetis
There's a temporary hack to skip showing Rex's standing up animation cause it takes ages to finish
2014-04-26MADS: Beginnings of full screen dialogsPaul Gilbert
2014-04-26MADS: Implemented more save/load logicPaul Gilbert