29 Commits

Author SHA1 Message Date
Paul Gilbert
6c187dbb30 TUCKER: Changing autosave to work with common Engine code 2020-02-16 15:44:28 -08:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Adrian Frühwirth
08bbef8f7d TUCKER: Improve autosave error handling 2018-04-21 16:02:51 +02:00
Adrian Frühwirth
2bbed8146f TUCKER: Try autosaving only once per autosave interval 2018-04-21 15:45:34 +02:00
Adrian Frühwirth
9b21e7507c TUCKER: Do not assign negative value to unsigned int 2018-04-07 13:06:05 +02:00
Adrian Frühwirth
00e59a3122 ALL: Load savegame thumbnail only when necessary
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.
2018-04-07 09:26:20 +02:00
Adrian Frühwirth
0bf68e9581 TUCKER: Follow code formatting convention for switch statements 2018-03-28 21:40:10 +02:00
Adrian Frühwirth
0749507a34 TUCKER: Add Location enum 2018-03-21 16:47:10 +01:00
Adrian Frühwirth
d4636f4616 TUCKER: Reset panel type to normal after loading a savegame 2018-03-20 22:53:18 +01:00
Adrian Frühwirth
1a44eecafb TUCKER: Remove trailing comma from enum list 2018-03-16 20:41:00 +01:00
Adrian Frühwirth
58bce94510 TUCKER: Added missing check for minimum supported savegame version 2018-03-16 20:37:22 +01:00
Adrian Frühwirth
ed44cbf287 TUCKER: Add savegame metadata and autosave support 2018-03-16 20:18:32 +01:00
Adrian Frühwirth
dce8a98a18 TUCKER: Add CursorStyle and CursorState enums 2018-03-02 17:26:12 +01:00
Adrian Frühwirth
43053644a8 TUCKER: Remove superfluous arguments in loadBudSpr et al 2018-02-11 11:50:52 +01:00
Adrian Frühwirth
90ce265ab8 TUCKER: Print infobar string if no savegame exists
Before, the ingame load dialog pretended to allow loading savegames from
all possible slots even if no savegames existed.
This introduces the original interpreter's behavior which instead loads
a resource string from infobar.txt informing the user that no savegames
are available.
2018-01-31 19:23:56 +01:00
Strangerke
0b9ba6ad29 TUCKER: Some more renaming 2014-03-09 00:00:27 +01:00
Johannes Schickel
9e90dcd346 TUCKER: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Tarek Soliman
edc5249772 JANITORIAL: Fix template definition whitespace 2012-02-10 21:17:27 -06:00
D G Turner
5015d12142 TUCKER: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 18:02:12 +01:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
6b98c4c4e7 Got rid of some more ioFailed uses (also fixed a potential leak in graphics/font.cpp, and handle eos correctly in the FLAC code)
svn-id: r42488
2009-07-14 18:24:20 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Gregory Montoir
2fd66d8eae some cleanup :
- separated instruction table parsing from instruction execution
- added a few debug calls to monitor game flags changes
- some variables/functions renaming

svn-id: r40454
2009-05-11 14:04:44 +00:00
Gregory Montoir
c39b5f5c6f force inventory redraw after a game state load (inventory should now be ok when exiting GMM, should fix #2603197)
svn-id: r38682
2009-02-21 11:26:50 +00:00
Gregory Montoir
362bdf87d7 added support for kSupportsLoadingDuringRuntime & kSupportsSavingDuringRuntime, cleanup
svn-id: r35171
2008-11-28 23:56:25 +00:00
Gregory Montoir
4a5d4ba94d add initial support for 'Bud Tucker in Double Trouble'
svn-id: r34990
2008-11-10 20:38:54 +00:00