aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.h
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.
2015-11-24MADS: Refactor camera codeStrangerke
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-25MADS: Phantom: Implement scene 202Strangerke
2015-10-19MADS: Phantom: Implement scene 109Strangerke
2015-10-15MADS: Add logic for scene 103, some rework on animationsStrangerke
2015-05-09MADS: Make GPL header consistent with what we normally use.Johannes Schickel
2015-03-15MADS: Hook up all of the remaining options, and add custom game optionsFilippos Karapetis
2015-02-14MADS: Allow Escape key to close game options dialogPaul Gilbert
2014-06-28MADS: Create savegame thumbnail from scenes before opening in-game dialogsPaul Gilbert
2014-06-06MADS: Refactoring and cleanup of the game startup codePaul Gilbert
2014-06-01MADS: Fixes for recharging durafail batteriesPaul Gilbert
2014-05-26MADS: Fix displaying multi-line messages in conversation with village girlPaul Gilbert
2014-05-27MADS: synchronise -> synchronizeJohannes Schickel
2014-05-27MADS: initialise -> initialize.Johannes Schickel
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-03MADS: Savegames are now workingPaul Gilbert
2014-05-01MADS: Implemented more savegame synchronizationPaul Gilbert
2014-04-27MADS: Implement the audio playerFilippos Karapetis
This is used for all digital samples, plus voices in talkie versions. Currently, it's only hooked to the "play_audio" debugger command
2014-04-26MADS: Implemented more save/load logicPaul Gilbert
2014-04-26MADS: Implemented savegame header read/writesPaul Gilbert
2014-04-22MADS: Beginnings of savegame synchronisationPaul Gilbert
2014-04-21MADS: Create a Globals base class that the games will derive fromPaul Gilbert
2014-04-20MADS: Implemented display of conversation topicsPaul Gilbert
2014-04-12MADS: Fix a bunch of GCC warningsPaul Gilbert
2014-04-10MADS: Added method stub for unhandled action methodPaul Gilbert
2014-04-08MADS: Resolve some old TODOsPaul Gilbert
2014-04-08MADS: Added preliminary keyboard handling and keypress process stubPaul Gilbert
2014-04-08MADS: Implement scene 210, some cleanup of some other 2xx scenes, add some stubsStrangerke
2014-04-07MADS: Implement loading logic for UI background animationsPaul Gilbert
2014-04-02MADS: Fix/clean up ending of ScreenObjects::checkPaul Gilbert
2014-04-01MADS: Minor variable renaming and remove incorrect variable set in scene loopPaul Gilbert
2014-03-29MADS: Implemented message loading/decodingPaul Gilbert
2014-03-29MADS: Implemented NebularGame::stepPaul Gilbert
2014-03-27MADS: Initial cleanup of action/player handlingPaul Gilbert
2014-03-27MADS: Cleanup of game and player fields used during initializationPaul Gilbert
2014-03-26MADS: Cleaned up game initialisation code to use more constantsPaul Gilbert
2014-03-25MADS: Added enums for copy protection result and globalsPaul Gilbert
2014-03-25MADS: Add scene 208Strangerke
2014-03-23MADS: Implemented more action handling methodsPaul Gilbert
2014-03-21MADS: Fixes for screen objects loading and checkingPaul Gilbert
2014-03-19MADS: Moved ScreenObjects into the Game classPaul Gilbert
2014-03-16MADS: Implementing user interface text display methodsPaul Gilbert
2014-03-15MADS: Implemented scene 103 setup and needed support methodsPaul Gilbert
2014-03-11MADS: Implemented scene 804 stepPaul Gilbert