aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_saveload.cpp
AgeCommit message (Collapse)Author
2018-06-29MOHAWK: RIVEN: Use an in-game thumbnail when saving from the menuBastien Bouclet
Instead of a thumbnail of the menu itself.
2018-05-22MOHAWK: Allow non-autosaves in autosave slot to be deletableDavid Fioramonti
With the addition of autosaving support, deleting saves (via the gui) to slot 0 was disabled, but for saves that have been previousl created by the user it make sense that they should be allowed to delete a save in slot 0. Fixes Trac#10536.
2018-05-20MOHAWK: RIVEN: Add Autosave SupportDavid Fioramonti
The game will autosave to slot 0 using the save period given in the scummvm config file. Or when the user quits. Autosaves are only allowed when an autosave is in slot 0, there is no save in slot 0, or there is a save, but it is corrupt. This will not override any saves the player has previously put in save slot 0. If there is a save in slot 0 that is not an autosave then there will be no autosaving.
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-09-20MOHAWK: Riven: Plug memory leak when savingBastien Bouclet
Fixes #10216.
2017-08-14MOHAWK: Update transition mode after loading savegameTorbjörn Andersson
2017-07-12MOHAWK: Riven: Improve save load error handlingBastien Bouclet
A GUI error message is now displayed if an error occurs when loading a save.
2017-07-03MOHAWK: Update the card and stack variables when entering new locationsBastien Bouclet
2017-07-03MOHAWK: Rename the card and stack accessorsBastien Bouclet
2017-07-03MOHAWK: Move the resource names to RivenStackBastien Bouclet
2017-07-03MOHAWK: Introduce a new RivenStack classBastien Bouclet
2017-07-03MOHAWK: Remove the current card id from the Riven engine classBastien Bouclet
2016-07-10MOHAWK: Switch Riven saves to a slot based naming schemeBastien Bouclet
Existing saves are compatible but must be renamed to riven-###.rvn
2016-07-10MOHAWK: Save ScummVM specific metadata in the Riven savesBastien Bouclet
- Thumbnail - Save date - Save description - Total play time
2016-07-10MOHAWK: Make the Riven saved games loadable by the original engineBastien Bouclet
2014-05-03MOHAWK: Use original stack ID mapping for RivenMatthew Hoops
2014-02-18MOHAWK: Make GPL headers consistent in themselves.Johannes Schickel
2012-03-16MOHAWK: Improve Riven save/load error messagesMatthew Hoops
2011-06-28MOHAWK: Cleanup Riven save codeMatthew Hoops
2011-06-28MOHAWK: Rework archive handlingMatthew Hoops
A new base class has been introduced (aptly named "Archive"), which is much cleaner than inheriting from MohawkArchive. In addition, the underlying resource retrieving code has been merged to reduce dupliplication.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-23MOHAWK: Use direct access on the hashmap for Riven variables nowMatthew Hoops
2011-03-23MOHAWK: Make Riven's save/load code use the variable map directlyMatthew Hoops
2011-03-22MOHAWK: Ignore other 'time' variables when loading saves tooMatthew Hoops
2011-03-21MOHAWK: Add workaround for loading the bytramtime variableMatthew Hoops
2011-03-21MOHAWK: Don't error out when the ReturnStackID cannot be convertedMatthew Hoops
2011-01-11MOHAWK: Implement Riven's whark number puzzleMatthew Hoops
svn-id: r55207
2010-11-22MOHAWK: Have MohawkResource::open() return a bool for success/failureMatthew Hoops
svn-id: r54418
2010-11-20MOHAWK: Cleanup resource handlingMatthew Hoops
- Renamed getRawData() to getResource() - Add a getResource() and hasResource() function for named resources - Other minor formatting changes svn-id: r54396
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-05MOHAWK: CleanupMatthew Hoops
- Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually - Some minor function signature changes (const!) - Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable - Use solely Common::String in getVar() svn-id: r52538
2010-06-26Fix saving while viewing the inventory in Riven and cleanup the save/load code.Matthew Hoops
svn-id: r50333
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-02-16Add a workaround for two 'spare' variables that can exist in some save files.Matthew Hoops
svn-id: r48069
2010-01-26Correct our interpretation of the first four bytes of the RSRC section in ↵Matthew Hoops
Mohawk archives. svn-id: r47583
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-22Rename MohawkFile to MohawkArchive and OldMohawkFile to ↵Matthew Hoops
LivingBooksArchive_v1 (the latter originally having an ambiguous meaning) and move them to resource.* Also, renaming the Living Books game types to remove the ambiguous old/new. svn-id: r47429
2010-01-04Fix a memory leak spotted by cppcheck. Thanks salty-horse\!Matthew Hoops
svn-id: r46977
2009-12-30MOHAWK: Stop using String::emptyStringMax Horn
svn-id: r46780
2009-12-30Re-indentet switch() blocks to follow ScummVM indentation style. (I've alwaysTorbjörn Andersson
found this style a bit unusual, but I value consistency.) svn-id: r46734
2009-12-29Add Mohawk engine code. Part 1/3: main code.Eugene Sandulenko
svn-id: r46727