Commit graph

34 commits

Author SHA1 Message Date
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
Ben Castricum
b041618a42 ALL: Remove comma before the word 'instead' 2016-11-29 20:22:19 +01:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
3def363968 DREAMWEB: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
6af2e8564a DREAMWEB: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Johannes Schickel
aaff7b1736 DREAMWEB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
e66b9d4487 DREAMWEB: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Filippos Karapetis
fb5aa3ccbb DREAMWEB: Rename the dreamweb_originalsaveload option to originalsaveload
This changes its naming to be like the rest of the game options
2012-03-25 17:50:22 +03:00
Filippos Karapetis
eabdf8048e DREAMWEB: Add per-game GUI option support. 2012-03-19 21:04:29 +01:00
Max Horn
37216ab381 DREAMWEB: Avoid including advancedDetector.h from dreamweb.h 2012-02-22 18:25:37 +01:00
Filippos Karapetis
279746fcf0 DREAMWEB: Completely remove all of the runtime, and move everything into DreamWebEngine
Also, remove dead code (allocateMem/deallocateMem)
2011-12-28 15:07:17 +02:00
Filippos Karapetis
a1799ba091 DREAMWEB: Close the file opened in querySaveMetaInfos() when returning 2011-12-18 12:19:19 +02:00
Filippos Karapetis
83b31ccb1d DREAMWEB: Remove an erroneous comment (copy/paste error) 2011-12-18 03:07:54 +02:00
Filippos Karapetis
08fec8fa34 DREAMWEB: Add meta information to saved games
This information includes savegame versioning and the saved game's
date/time, played time and game thumbnail. This information is stored
into an unused data block of the original save format, so the
generated ScummVM saves are (hopefully) fully compatible with the
original ones and can be loaded in the original interpreter
2011-12-18 02:55:22 +02:00
Filippos Karapetis
0731bcb5ac DREAMWEB: Implement removeSaveState() 2011-12-17 19:28:04 +02:00
Max Horn
5b43fb6be7 DREAMWEB: Code formatting 2011-12-08 19:52:10 +01:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Willem Jan Palenstijn
d79364489d DREAMWEB: Enable 100 savegames 2011-08-18 00:29:36 +02:00
Willem Jan Palenstijn
8a5c8f3320 DREAMWEB: Add/fix loading from launcher
This is very error-prone, and needs testing.
2011-08-18 00:29:17 +02:00
Eugene Sandulenko
540d0260e6 DREAMWEB: Add ScummVM headers, remove SVN keywords. 2011-07-19 11:26:40 +01:00
Tarek Soliman
478279a4b7 DREAMWEB: disable load button in launcher 2011-07-05 19:31:34 -05:00
Vladimir Menshakov
545e482b5a DREAMWEB: Reimplemented modifychar and language switching 2011-06-25 18:21:37 +04:00
Vladimir Menshakov
08375150ca DREAMWEB: Show subtitle options only for CD version 2011-06-24 09:41:13 +04:00
Vladimir Menshakov
e30b41b28e DREAMWEB: Added subtitle option 2011-06-23 23:30:12 +04:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
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-20 00:59:48 +02:00
Ori Avtalion
9b703356e6 DREAMWEB: Fix saveGameState signature to match Engine's virtual method 2011-06-18 19:59:36 +03:00
Vladimir Menshakov
41a399231b DREAMWEB: added stubs for loading from lancher (disabled). 2011-06-18 14:29:10 +04:00
Vladimir Menshakov
cf671227fe DREAMWEB: do not call updatescreen before quitting, fixed crash on dosreturn, cleaned up dosreturn stub 2011-06-18 13:33:58 +04:00
Vladimir Menshakov
3da9bf5cc9 DREAMWEB: Fixed size of the save file title 2011-06-16 10:41:47 +04:00
Vladimir Menshakov
dc1c1d48d9 DREAMWEB: added savefiles enumeration 2011-06-16 01:21:24 +04:00
Vladimir Menshakov
c760405a4e DREAMWEB: ported engine to the new metaengine api 2011-06-15 17:35:03 +02:00
Vladimir Menshakov
77624071bc DREAMWEB: removed detection params 2011-06-15 17:34:40 +02:00
Vladimir
52a89174ab DREAMWEB: added autogenerated source 2011-06-15 17:29:05 +02:00