aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/saveload.cpp
AgeCommit message (Collapse)Author
2018-08-03TINSEL: Add playTime to saved game and display itDavid Fioramonti
Also bumps the saved game format version to 3. I changed the order of how the data is saved so that the playtime could be read in without skipping as much data. This is because querySaveMetaInfos only needs the metafields where as saveload::DoRestore() needs more of the header. A crash was happening when trying to delete a saved game from the launcher. It is because the engine is not initalized. I assign a dummy value to resolve the issue. Loading saved games from previous versions works. When an old version saved game is loaded it will start with zero playtime. Old saved games are shown as not having playtime data.
2018-02-01TINSEL: Remove now duplicate VER macroBastien Bouclet
2016-11-29ALL: game state => saved gameBen Castricum
2016-05-31TINSEL: Fix illegal memory reads.Eugene Sandulenko
In case of "unnamed" case (see line 582) we were memcpy'ing 31 byte from the heap.
2016-05-11TINSEL: Safer string manipulationEugene Sandulenko
2014-02-18TINSEL: Make GPL headers consistent in themselves.Johannes Schickel
2013-01-02TINSEL: Fix another Clang analyzer warningTorbjörn Andersson
Whether or not SaveFailure() can delete the save file, we want to invalidate the save name because it probably only lives on the stack so the pointer will become invalid once DoSave() has ended.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-08-06TINSEL: Fixed portability issue with earlier savegamesPaul Gilbert
2012-02-22TINSEL: Rename globals to add g_ prefix.Alyssa Milburn
2012-02-11TINSEL: Added extra fields to the savegame header for SCN/GRA usage and languagePaul Gilbert
New savegames that are created will no longer appear in the savegame list for different data versions or languages.
2011-12-08TINSEL: Replace usage of 'goto'.D G Turner
2011-10-18TINSEL: Bugfix for restoring DW1 savegames with a saved scenePaul Gilbert
This happens, for example, when restoring a savegame of the dragon summoning book close-up. After restoring, you couldn't leave the close up.
2011-08-07TINSEL: Use SAVEGAME_ID when getting savegame info, if a VM is instantiatedFilippos Karapetis
2011-08-07TINSEL: Fixed deleting saved games from the launcher (bug #3387551)Filippos Karapetis
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-13I18N: Make many more GUI MessageDialog strings translatableThierry Crozat
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-10TINSEL: Cleanup reel saving codeMax Horn
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-14ALL: colour -> colorMax Horn
2011-04-10TINSEL: Merged NewName() inside DoSave() in order to remove a static varmd5
2010-11-16TINSEL: Mark all (?) global vars with a FIXME commentMax Horn
Use of global vars is what prevents RTL from working in Tinsel (and probably in other engines). More specifically, the fact that many global vars are not explicitly inited when the engine is (re)launched. svn-id: r54262
2010-10-31TINSEL: cleanupMax Horn
svn-id: r53991
2010-06-06Bugfix for #2974817 - Mad Drongo Animation MalfunctionPaul Gilbert
svn-id: r49447
2010-05-18Replace some strncpy usages with Common::strlcpy.Johannes Schickel
svn-id: r49086
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-03-18TINSEL: Change SaveSceneSsData from char* to SAVED_DATA*Max Horn
svn-id: r48285
2009-12-15Got rid of ReadStream::ioFailed()Max Horn
svn-id: r46379
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-08Introduce a new struct TimeDate, replacing struct tm in client code. May ↵Max Horn
lead to compilation issues in ports, which should be trivial to fix, though svn-id: r44793
2009-10-04Change a couple places from 'end of namespace' to 'End of namespace', for ↵Max Horn
consistency svn-id: r44634
2009-08-02Show a message if saving or loading a game fails.Torbjörn Andersson
svn-id: r42999
2009-07-20Bugfix for hangs on scene changes in Discworld 1 after having loaded a ↵Paul Gilbert
savegame from the GMM when the title screens are displayed svn-id: r42626
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
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-03-15Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the ↵Max Horn
SCI engine svn-id: r39428
2009-03-12TINSEL: Added Serializer::skip() convenience methodMax Horn
svn-id: r39350
2009-01-28Silence GCC warning.Torbjörn Andersson
svn-id: r36122
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-20Fixed loading Discworld 2 savegames from GMM.Johannes Schickel
svn-id: r35453
2008-12-12- Save games are now listed from oldest to newest in the GMM load dialog for ↵Filippos Karapetis
tinsel games, like in other engines - Added some disabled code for saving through the GMM (still incomplete) svn-id: r35316
2008-12-02- Set the maximum number of save games in DW1 and DW2 to 100, up from 30Filippos Karapetis
- It's now possible to load and delete save games using the GMM (although not through the launcher screen yet) svn-id: r35207
2008-12-01Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 ↵Filippos Karapetis
should be completable svn-id: r35196
2008-10-12Fix warningMax Horn
svn-id: r34780
2008-09-01TINSEL: Enabled listSaves supportMax Horn
svn-id: r34263
2008-07-30Make sure that save game descriptions are 0-terminatedFilippos Karapetis
svn-id: r33438
2008-07-23Added Tinsel engine to main repos (no news item for it ON PURPOSE)Max Horn
svn-id: r33230