aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/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.
2014-02-18HOPKINS: Make GPL headers consistent in themselves.Johannes Schickel
2013-08-03HOPKINS: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03HOPKINS: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-07-31HOPKINS: Bumped up savegame version, and added load handling the brief ↵Paul Gilbert
version 3 format
2013-07-31HOPKINS: Reverted to saving Breakout high scores in a separate filePaul Gilbert
2013-07-26HOPKINS: Move breakout highscore table to savegames, and fixes to displayPaul Gilbert
2013-06-26HOPKINS: Change some variable names for consistencyTorbjörn Andersson
This silences a GCC warning about a 'saveFile' variable shadowing a saveFile() method.
2013-06-26HOPKINS: Remove erroneous static keyword, get rid of g_vmStrangerke
2013-05-08HOPKINS: Fix bug #3612115 - Courtesy of SylvainTV: Fix palette in thumbnailsStrangerke
2013-04-17HOPKINS: fix ingame save thumbnails on BEAlyssa Milburn
2013-04-10HOPKINS: Make engine less verbose by reducing some object namesStrangerke
2013-04-09HOPKINS: Renaming some of the remaining graphics methodsPaul Gilbert
2013-03-30HOPKINS: Rename display buffersStrangerke
2013-03-20HOPKINS: Remove setParent() from SaveLoadManager and ScriptManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from MenuManager and ObjectsManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from GraphicsManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from GlobalsStrangerke
2013-03-19HOPKINS: Remove setParent() from EventsManager and DebuggerStrangerke
2013-03-01HOPKINS: Rename some more savegame indexesStrangerke
2013-02-28HOPKINS: Rename some members of savegame offset enum, remove some unused onesStrangerke
2013-02-26HOPKINS: Some renaming in GraphicsManagerStrangerke
2013-02-21HOPKINS: Pre-convert paletteWillem Jan Palenstijn
2013-02-15HOPKINS: Reorder includesStrangerke
2013-02-07HOPKINS:Move some variables from globals to ObjectManagerStrangerke
2013-01-21HOPKINS: More renaming in ObjectsManager and globalsStrangerke
2013-01-21Hopkins: More renamingStrangerke
2013-01-21HOPKINS: More renaming in ObjectsManagerStrangerke
2013-01-14HOPKINS: Rename car related fields, remove map car sprite indexStrangerke
2013-01-14HOPKINS: Add synchronization of car position on the city mapStrangerke
2013-01-02HOPKINS: Silence some GCC warning (thanks to eriktorbjorn)Strangerke
2012-12-24HOPKINS: Refactor handleGoto and handleIf, some renamingStrangerke
2012-12-21HOPKINS: Remove remaining hexa valuesStrangerke
2012-12-20HOPKINS: Remane functions and variables from GlobalsStrangerke
2012-12-19HOPKINS: Rename methods in ObjectsManager, Globals and GraphicsManagerStrangerke
2012-12-17HOPKINS: Renaming of members of Globals and ObjectsManagerStrangerke
2012-12-16HOPKINS: Some more renamingStrangerke
2012-12-16HOPKINS: Some more renamingStrangerke
2012-12-15HOPKINS: Merge two zoom in and out functionsStrangerke
2012-12-14HOPKINS: Janitorial - Remove trailing space and double semi columnsStrangerke
2012-12-11HOPKINS: Start renaming EventsManager functionsStrangerke
2012-12-08HOPKINS: Apply second memory leak patchPaul Gilbert
2012-11-30HOPKINS: Fix savegame thumbnailsPaul Gilbert
2012-11-25HOPKINS: Renamed CharcaterInfo fields of SAUVEGARDEPaul Gilbert
2012-11-24HOPKINS: Clean-up of CHANGE_TETE to fix switching charactersPaul Gilbert
2012-10-28HOPKINS: Remove duplicate GOACTION variable.Paul Gilbert
This fixes arriving at destinations from the map view.
2012-10-28HOPKINS: Implemented save restore functionalityPaul Gilbert
2012-10-28HOPKINS: Disable greyscaling of savegame thumbnailsPaul Gilbert
2012-10-27HOPKINS: Beginnings of save/load implementationPaul Gilbert
2012-10-27HOPKINS: Move Save/Load dialog code from menu.cpp to dialogs.cppPaul Gilbert