Commit Graph
30 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 882eb43608 GNAP: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Paul Gilbert 9f175c4053 ENGINES: Cleanup of savegame filenames generation
This removes filename methods when it matched the Engine method.
Secondly, ensuring there was an overriden getSaveStateName method
for engines that didn't do the standard target.00x save filenames
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
D G Turner 170e57593d GNAP: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-27 00:11:29 +00: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
Bastien Bouclet 382df4a7c5 GNAP: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer 2017-09-22 07:06:20 +02:00
Strangerke d2aa9c7ded GNAP: Add a note concerning the original save and load screens 2016-05-23 01:59:14 +02:00
Strangerke 2a2082c1f9 GNAP: Remove a TODO
This code is never called because it's triggered by clicking on the button
2016-05-23 01:33:13 +02:00
Strangerke 58fb1563ca GNAP: Map remaining Key codes 2016-05-23 00:33:50 +02:00
Strangerke 0873f92ceb GNAP: Remove yet another TODO 2016-05-21 01:20:19 +02:00
Strangerke 9a2bc3c572 GNAP: Add several checks on _gameDone in order to quit the game quickly 2016-05-19 07:59:07 +02:00
Strangerke 97ac77b5f1 GNAP: Compute the thumbnail when opening the device so that it doesn't show the large hand in savegames 2016-05-19 07:06:48 +02:00
Strangerke 3bf35331ab GNAP: Add thumbnails, rewrite partially querySaveMetaInfos.
Gnap's hand and device are in the middle of the screen, there's place for improvement
2016-05-19 00:13:01 +02:00
Strangerke 4c37381a8e GNAP: Add missing stars in header, change include guard name in gnap.h 2016-05-17 22:05:35 +02:00
Strangerke e5f60634a5 GNAP: Fix regression in hotspots 2016-05-15 16:21:04 +02:00
Strangerke 9c0808237c GNAP: Remove _id from HotSpot structure 2016-05-12 07:59:20 +02:00
Strangerke af1cf151de GNAP: Use Common::Rect for hotspots 2016-05-12 07:53:06 +02:00
Strangerke f467db5ed2 GNAP: Add music when game is paused 2016-05-12 00:33:47 +02:00
Strangerke 25fc9c0a13 GNAP: Janitorial - Remove trailing spaces and tabs 2016-05-10 12:14:47 +02:00
Strangerke d6e4b67dca GNAP: Add load from launcher 2016-05-10 09:54:21 +02:00
Strangerke 558ab62fd7 GNAP: Enforce the use of a boolean when calling playSound() 2016-05-10 09:54:21 +02:00
Strangerke 192bc34935 GNAP: Fix savegames 2016-05-10 09:54:21 +02:00
Strangerke efa9466c81 GNAP: Replace more flags values by enums 2016-05-10 09:54:21 +02:00
Strangerke e11ec6a9c1 GNAP: Some rework of hotspot initialization code 2016-05-10 09:54:21 +02:00
Strangerke f1738f457f GNAP: Add savegames (not fully working yet) 2016-05-10 09:54:21 +02:00
Strangerke 29d989ac0e GNAP: Change the initial values of backGroundImageValue2&4, change transparent to boolean, use nullptr in several places 2016-05-10 09:54:21 +02:00
Strangerke 83bc85713b GNAP: More renaming. Remove unused variable in MouseButtonState and Hotspot 2016-05-10 09:54:21 +02:00
Strangerke ccadc0ab20 GNAP: Some renaming, change some function parameters to boolean 2016-05-10 09:54:21 +02:00
johndoe123 d80c7605a0 GNAP: Initial commit 2016-05-10 09:54:21 +02:00