aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/lab.h
AgeCommit message (Collapse)Author
2018-08-03LAB: By default skip thumbnail loading for readSaveGameHeaderDavid Fioramonti
This changes the convention back to skipping the thumbnail loading for readSaveGameHeader. querySaveMetaInfos is the only place it shouldn't be skipped.
2018-07-25LAB: Fix thumbnail issuesDavid Fioramonti
Fixes Trac#10619. The thumbnail loading for the saved games was defaulting to disabled so no thumbnail was being loaded and this caused trying to show the thumbnail to crash scummvm. So I have set the thumbnail pointer to be null if the thumbnail doesn't get loaded and I've set the thumnail to not be skipped so that thumbnails get shown when using the gui.
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-01-15LAB: Get rid of _interfaceOffFilippos Karapetis
2016-01-15LAB: Separate the interface from the event managerFilippos Karapetis
2016-01-14LAB: Clean up the trial warning handling codeFilippos Karapetis
2016-01-14LAB: Rename doCloseup() to reflect its actual purposeFilippos Karapetis
2016-01-14LAB: Get rid of setDirection()Filippos Karapetis
A leftover from code restructuring
2016-01-14LAB: Rename the members of the CrumbData structFilippos Karapetis
This helps to distinguish them from the LabEngine variables
2016-01-14LAB: The parameter of doMap() isn't neededFilippos Karapetis
2016-01-05LAB: Fix switching between texts in monitorWillem Jan Palenstijn
2015-12-28LAB: Fix loading from the GMM and warping to rooms from the consoleFilippos Karapetis
2015-12-27LAB: Add support for saving and loading games from the GMMFilippos Karapetis
2015-12-27LAB: Refactor the music codeFilippos Karapetis
2015-12-27LAB: Rename TilePuzzle to SpecialLocks, to better reflect its purposeFilippos Karapetis
This class handles two different special locks, the tile puzzle and the combination door
2015-12-26LAB: Remove type ConstDataPtr, add constsWillem Jan Palenstijn
2015-12-26LAB: Reduce passing around of pointers to the near-global _closeDataPtrWillem Jan Palenstijn
2015-12-26LAB: Reduce passing around of pointers to the near-global _closeDataPtrWillem Jan Palenstijn
2015-12-26LAB: Reduce passing around of pointers to the near-global _closeDataPtrWillem Jan Palenstijn
2015-12-26LAB: Reduce passing around of pointers to the near-global _closeDataPtrWillem Jan Palenstijn
2015-12-25LAB: Rename fromCrumbs() to processEvent() and simplify it a bitFilippos Karapetis
2015-12-25LAB: Use friendlier names for listsFilippos Karapetis
2015-12-24Merge branch 'master' of github.com:scummvm/scummvmWillem Jan Palenstijn
2015-12-24LAB: Avoid manual memory management of CloseDataWillem Jan Palenstijn
2015-12-24LAB: Remove the 3rd parameter of drawMap (always false)Strangerke
2015-12-24Use Common::Keycode and enums in interface buttonsFilippos Karapetis
2015-12-24LAB: Avoid manual memory management in Action listsWillem Jan Palenstijn
2015-12-24LAB: Get rid of _screenImageFilippos Karapetis
Thanks to wjp for finding this
2015-12-23LAB: Change the direction and map door defines into enumsFilippos Karapetis
2015-12-23LAB: Fix warnings by adding constsWillem Jan Palenstijn
2015-12-23LAB: Add a console, with two new commands (scene and scene_resources)Filippos Karapetis
2015-12-23LAB: Move event update functions out of updateMusicStrangerke
2015-12-23LAB: Change RuleList to a Common::List<Rule> as suggested by wjpStrangerke
2015-12-23LAB: Delete some more variables in LabEngine destructorStrangerke
2015-12-23LAB: Move some more comments to header filesStrangerke
2015-12-23LAB: Constify some parametersStrangerke
2015-12-23LAB: More work on the commentsStrangerke
2015-12-23LAB: Remove some leftover MSVC memory leak tester codeFilippos Karapetis
2015-12-23LAB: Use Common::String for strings, removing a ton of memory leaksFilippos Karapetis
Also, add a method to properly free room views
2015-12-23LAB: Remove parameters from processMainButton and performActionStrangerke
2015-12-23LAB: Simplify decIncInv() and move action handling out of fromCrumbs()Filippos Karapetis
2015-12-23LAB: Use Common::Rect in functions related to flowText (WIP)Strangerke
2015-12-23LAB: Some renamesFilippos Karapetis
2015-12-23LAB: make takeItem use Common::Point, some refactoringStrangerke
2015-12-23LAB: Move some code from fromCrumbs() into separate functionsFilippos Karapetis
This makes this huge function a bit easier to read and understand
2015-12-23LAB: Fix a regression related to random number generation, some renamingStrangerke
2015-12-23LAB: Finally get rid of g_labStrangerke
2015-12-23LAB: Some renaming in LabEngineStrangerke
2015-12-23LAB: Add _vm to Image classStrangerke
2015-12-23LAB: Merge the different X image mapsFilippos Karapetis