aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/saveload.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.
2017-11-21TSAGE: Fix loading savegames with unreferenced dynamic objectsPaul Gilbert
2014-03-07TSAGE: Rename savegame header membersStrangerke
2014-02-18TSAGE: Make GPL headers consistent with themselves.Johannes Schickel
2013-12-20TSAGE: Some renaming, remove some useless variables from Core, increase ↵Strangerke
savegame version
2013-12-19TSAGE: Remove 3 useless variable from Scene, increment savegame versionStrangerke
2013-12-18TSAGE: R2R - Renaming in scene 3600Strangerke
2013-11-26TSAGE: BF - Remove some useless variables, some renamingStrangerke
2013-11-02TSAGE: Increase savegame version in order to properly skip the useless variablesStrangerke
2013-10-27TSAGE: Fix CID 1002371, 1002372, 1002373. Remove useless variable and ↵Strangerke
associated code.
2013-07-16TSAGE: Bugfixes for R2R drive room, and work on scanner modal dialogPaul Gilbert
2011-12-31TSAGE: BF - Fix for bug #3467502, crash when loading in map sceneStrangerke
2011-11-09TSAGE: BF - Cleanup: Remove _uselessVariable in scene 360Strangerke
2011-10-27TSAGE: Implemented walk regions enabling/disabling for Blue ForcePaul Gilbert
2011-10-02TSAGE: Added 'g' prefix to global variablesPaul Gilbert
2011-09-25TSAGE: Moved the _bgSceneObjects list from SceneManager to Scene.Paul Gilbert
This fixes a problem with Blue Force savegames in that they were being loaded too early, and being destroyed as the game scene was then loaded.
2011-08-26TSAGE: Further bugfix for SynchronizedList template changesPaul Gilbert
2011-08-26TSAGE: Hopeful bugfix for compilation errors on other systemsPaul Gilbert
2011-08-26TSAGE: Implemented lots more Blue Force functionality, and started on first ↵Paul Gilbert
in-game scene
2011-08-15TSAGE: Corrected casing of tSage namespace to be TsAGEPaul Gilbert
This matches the casing of the original engine name.
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 support for saving in scene #6100Paul Gilbert
2011-06-03TSAGE: Add proper colors to buttons in the CD version of ringworldStrangerke
2011-05-15TSAGE: Fixed saving problem and talking to Seeker in Scene #50Paul Gilbert
2011-05-13TSAGE: Fix warning when compiling in release modeMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
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-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-17TSAGE: Suppress strict-alias warnings on older GCCsdhewg
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-23TSAGE: Added proper cursor showing when the scene changesPaul Gilbert
2011-02-16TSAGE: fix tokenization issue in SYNC_ENUM in GCCAlex Bevilacqua
This needs to be tested in MSVC to ensure it doesn't now break Windows builds with a different error ;)
2011-02-14TSAGE: Added the engine in a separate branchPaul Gilbert