aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/saveload.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.
2018-03-26MORTEVIELLE: Let listSaves return list sorted on slot numbersAdrian Frühwirth
2016-06-08MORTEVIELLE: Use ### as save file patternEugene Sandulenko
2014-02-18MORTEVIELLE: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-16MORTEVIELLE: Janitorial - Remove trailing spacesStrangerke
2014-01-10MORTEVIELLE: Get rid of setParent()Strangerke
2014-01-09MORTEVIELLE: Get rid of setParent() in Menu and MouseHandlerStrangerke
2013-08-21MORTEVIELLE: Avoid erroring out when the user tries to load a missing save gameStrangerke
2013-08-03MORTEVIELLE: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03MORTEVIELLE: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-07-31MORTEVIELLE: Fix two GCC compiler warnings.D G Turner
The first is due to a variable set but never used i.e. destSurface, but I think this call is still needed to lock the area being copied, hence have removed the variable, but not the call. The second was a real bug in the type of the print format string used for savegame naming. slot is a number, not a string and can vary from 0 to 999, hence the 3 digit fixed size with zero padded prefix.
2013-07-19MORTEVIELLE: Reorder includesStrangerke
2013-07-13MORTEVIELLE: Changed savegames to use the game target to generate filenamesPaul Gilbert
2012-10-14MORTEVIELLE: More renamingStrangerke
2012-10-14MORTEVIELLE: Some more renamingStrangerke
2012-04-06MORTEVIELLE: Modify copyright string to include 1987.Strangerke
2012-04-06MORTEVIELLE: Remove var_morStrangerke
2012-04-06MORTEVIELLE: Remove trailing spacesStrangerke
2012-04-06MORTEVIELLE: Get rid of mor.cppStrangerke
2012-04-06MORTEVIELLE: Move functions out of mor.cppStrangerke
2012-04-06MORTEVIELLE: More renamingStrangerke
2012-04-06MORTEVIELLE: More renamingStrangerke
2012-04-06MORTEVIELLE: Rename more globals and move functions to MortevielleEngine. ↵Strangerke
Remove ovd1 files.
2012-04-06MORTEVIELLE: More renamingStrangerke
2012-04-06MORTEVIELLE: Some more renaming, introduce MouseHandlerStrangerke
2012-04-06MORTEVIELLE: Some more renamingStrangerke
2012-04-06MORTEVIELLE: Some more renamingStrangerke
2012-04-06MORTEVIELLE: Remove some useless g_vm uses, some more renamingStrangerke
2012-04-06MORTEVIELLE: Some more renamingStrangerke
2012-04-06MORTEVIELLE: More renaming and movingStrangerke
2012-04-06MORTEVIELLE: Merge prog and mor filesStrangerke
2012-04-06MORTEVIELLE: regroup several filesStrangerke
2012-04-06MORTEVIELLE: some more renaming, match menu item size in setText()Strangerke
2012-04-06MORTEVIELLE: Rename some more functions and globalsStrangerke
2012-04-06MORTEVIELLE: rename several globalsStrangerke
2012-04-06MORTEVIELLE: Rename some variables and functions related to 'Search' actionStrangerke
2012-04-06MORTEVIELLE: rename more globals and constants, remove t_nhom usageStrangerke
2012-04-06MORTEVIELLE: Silent a bunch of GCC warnings and errorsStrangerke
2012-04-06MORTEVIELLE: Some more code formatting, rename sonoffStrangerke
2012-04-06MORTEVIELLE: Rename mouse functions, various formatting fixesStrangerke
2012-04-06MORTEVIELLE: Convert f3/f8 dialog, alert dialog, and ques dialogs into classesPaul Gilbert
2012-04-06MORTEVIELLE: Renamed main loop methods, along with quit/end/lose variablesPaul Gilbert
2012-04-06MORTEVIELLE: Implemented ScummVM savegame functionality with metadataPaul Gilbert