aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/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.
2017-11-21TSAGE: Fix loading savegames with unreferenced dynamic objectsPaul Gilbert
2016-03-14TSAGE: Changed engine to use Graphics::ManagedSurfacePaul Gilbert
2014-03-07TSAGE: Rename savegame header membersStrangerke
2014-02-18TSAGE: Make GPL headers consistent with themselves.Johannes Schickel
2013-10-27TSAGE: Fix CID 1002371, 1002372, 1002373. Remove useless variable and ↵Strangerke
associated code.
2013-10-09TSAGE: Bugfixes for R2R space scenes to be full screenPaul Gilbert
2013-08-03TSAGE: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03TSAGE: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2011-12-31TSAGE: Close memory leak in savegame thumbnail.D G Turner
2011-11-21TSAGE: Added explicit freeing of thumbnail surface pixelsPaul Gilbert
2011-10-13TSAGE: Show an explicit error message when saving or loading savegames failsPaul Gilbert
2011-10-02TSAGE: Added 'g' prefix to global variablesPaul Gilbert
2011-08-15TSAGE: Corrected casing of tSage namespace to be TsAGEPaul Gilbert
This matches the casing of the original engine name.
2011-08-07GRAPHICS: Simplify the interface of Graphics::loadThumbnail().Christoph Mallon
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-07-02TSAGE: Fixed problem with saving double valuesPaul Gilbert
2011-06-23TSAGE: Added saving/restoring of playing sounds to savegamesPaul Gilbert
2011-06-04TSAGE: Add extra event manager fields to savegamesPaul Gilbert
This should correctly handle re-enabling the cursor when restoring savegames.
2011-05-25TSAGE: Silence another (incorrect but still annoying) uninitialized var warningMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-11TSAGE: Don't show cursor after restoring a game if a cut-scene is now activePaul Gilbert
2011-05-11TSAGE: Bugfix to show cursor after restoring a savegamePaul Gilbert
2011-05-04TSAGE: Some more conversions to US Englishmd5
2011-05-04TSAGE: Switched to American English, after the relevant discussion on -devel:md5
serialiser -> serializer synchronise -> synchronize
2011-05-04TSAGE: Now initializing the save game version properlymd5
2011-05-04TSAGE: Bumped up savegame version, so that the old savegames are still usablemd5
Savegames from revisions bf9b98f and 4f70162d are now version 2 savegames
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-28TSAGE: Proper bugfix for problem saving/restoring game in Scene #5000 and othersPaul Gilbert
2011-04-28TSAGE: Fixed assert after loading a game in scene 5000 and changing scenemd5
2011-04-27TSAGE: Added temporary fix for some saved games (e.g. scenes 4050 and 5000)md5
2011-04-19TSAGE: Suppress empty format string warning of g++.Johannes Schickel
2011-04-19TSAGE: Simplified the new Saver::getObjectCount methodPaul Gilbert
2011-04-19TSAGE: Reworked the saving code to fix crashesPaul Gilbert
Note that this undoes the recent compilation fix for GCC, since it didn't work. For now, used an explicit void ** conversion as previously suggested.
2011-04-18TSAGE: Fix palette corruption in savegame files.Paul Gilbert
2011-04-13TSAGE: "Cosmetic" cleanupsstrangerke
2011-04-13TSAGE: Cleanup custom List usage.Johannes Schickel
This makes the code use Common::List for all cases where synchronization can not be done with tSage::List::synchronise. Furthermore I renamed the custom List class to SynchronisedList to stress its purpose. I also removed clear2, contains and forEach and replaced them with algorithm usage from Common:: or in the case of "contains" replaced them with a simple inline function which uses Common::find.
2011-02-14TSAGE: Added the engine in a separate branchPaul Gilbert