aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/saveload.cpp
AgeCommit message (Collapse)Author
2019-03-06KYRA: cleanup dirathrxx
Reorganize all files in sub directories. The file placement isn't as intuitive as it might be for other engines, which is probably the reason why this hasn't been done before.
2019-01-20KYRA: fix GMM save/load invalid mem access for very old savegamesathrxx
This is for save files created 2006, 2007 and early 2008. Which is probably the reason why this has gone unnoticed.
2018-11-14KYRA: (EOB) - add support for FM-Towns version of EOB IIathrxx
2018-10-28KYRA: (EOB) - fix broken quickstart partyathrxx
regression from 00e59a31 - savegames without thumbnails (like the quickstart party) would raise an error message.
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-11-29ALL: game state => saved gameBen Castricum
2016-08-24KYRA: Fix openSaveForWriting() to return OutSaveFileAlexander Tkachev
2014-02-18KYRA: Make GPL headers consistent in themselves.Johannes Schickel
2012-11-23KYRA: Rename kReadSaveHeaderError to ReadSaveHeaderError.Johannes Schickel
2011-12-28KYRA: Silence some valgrind warnings by doing a slight sanity check on ↵Johannes Schickel
savefile size.
2011-12-28KYRA: (LOL) - minor reduction of save file sizeathrxx
2011-12-28KYRA: (LOL) - add support for loading original DOS version save filesathrxx
2011-12-27KYRA: Some formatting fixes.Johannes Schickel
2011-12-26KYRA: (EOB) - Start implementing EOB1 party transfer (not working yet)athrxx
(ScummVM specific solution which allows the selection of save files of all configured EOB1 targets)
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-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28KYRA: Clean up of header includes.Johannes Schickel
2011-04-18COMMON: Rename Error to ErrorCode, introduce new Error classMax Horn
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2010-11-19ALL: Push down deps on stream.h from .h to .cpp filesMax Horn
svn-id: r54358
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-28KYRA: Rename KyraEngine::saveGameState to KyraEngine::saveGameStateIntern.Johannes Schickel
This is to avoid name similarity between KyraEngine::saveGameState(Intern) and Engine::saveGameState. svn-id: r53912
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-05KYRA: Get rid of local static non-POD object.Johannes Schickel
This fixes crashes with the plugins branch for dhewg. svn-id: r52579
2010-08-02GRAPHICS: Renamed skipThumbnailHeader to skipThumbnail.Johannes Schickel
svn-id: r51668
2009-10-04Change a couple places from 'end of namespace' to 'End of namespace', for ↵Max Horn
consistency svn-id: r44634
2009-10-04LoL PC98: Fix thumbnail creation for quick saves and autosave.Johannes Schickel
svn-id: r44623
2009-07-25Adept savegame name creation code to use Common::String::printf.Johannes Schickel
svn-id: r42765
2009-07-14Got rid of some more ioFailed uses (also fixed a potential leak in ↵Max Horn
graphics/font.cpp, and handle eos correctly in the FLAC code) svn-id: r42488
2009-07-07Change "FM-Towns" to "FM-TOWNS" for consistency.Johannes Schickel
svn-id: r42232
2009-06-21Fix umlauts for original interpreter saves.Johannes Schickel
svn-id: r41722
2009-06-07Remove LoLEngine::_gameFlags and convert all Lands of Lore code to use ↵Johannes Schickel
_flagsTable instead. svn-id: r41351
2009-05-21LOL: - implemented freeze spellFlorian Kagerer
- fixed saveload code - added some opcode for the swamp svn-id: r40763
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-05-19Formatting.Johannes Schickel
svn-id: r40717
2009-05-19Remov lots of superfluous debug output.Johannes Schickel
svn-id: r40715
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-16Fixed various g++ warnings ("format not a string literal and no format ↵Johannes Schickel
arguments"). svn-id: r35096
2008-11-09Error out on savegame load failure (again).Johannes Schickel
svn-id: r34953
2008-11-09- Implemented Engine::saveGameState for KYRAJohannes Schickel
- Changed internal save/load API to use slots instead of filename strings - Changed internal save/load API to use Common::Error svn-id: r34952
2008-11-06Switched various Engine APIs to use Common::ErrorMax Horn
svn-id: r34916
2008-11-03Preliminary support for loading via GMM for KYRA engine.Johannes Schickel
svn-id: r34885
2008-09-30Renamed Engine::quit to Engine::shouldQuit (previously, it was easily ↵Max Horn
confused with Engine::quitGame); also cleaned up engine.h a bit svn-id: r34700
2008-09-14Cleanup.Johannes Schickel
svn-id: r34545
2008-09-14Added autosave support in Kyra.Johannes Schickel
svn-id: r34535
2008-09-14Fixed thumbnail creation / loading in kyra.Johannes Schickel
svn-id: r34527
2008-09-01Merging more of the GSoC 2008 RTL branch: KYRAMax Horn
svn-id: r34246
2008-08-20- Committed Max' compressed save backseeking support from patch #2050337 ↵Johannes Schickel
"KYRA/SCUMM: Thumbnail support/improvement" - Extended SCUMM engine to support savegames without thumbnail header. (Increased savegame version to prevent saves to be loaded from older ScummVM versions) - Fixed KYRA to properly support savegames without thumbnail header. svn-id: r34054
2008-08-20Committed patch #2050337 "KYRA/SCUMM: Thumbnail support/improvement". ↵Johannes Schickel
(Without Max' compressed backward seeking support for now) svn-id: r34053