764 Commits

Author SHA1 Message Date
Bastien Bouclet
9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Henrik "Henke37" Andersson
91659a1b1a DM: Game does not use MID, mark it as such. 2019-09-29 19:34:16 +03:00
D G Turner
bf5846dcd7 DM: Fix GCC Compiler Warnings from Structure memset Usage. 2019-08-26 02:31:29 +01:00
Filippos Karapetis
9fe1491a64 DM: Fix class member naming, and silence some MSVC warnings
MSVC complained about some potentially uninitialized variables (false
positives), as well as missing default cases in switch blocks
2018-12-23 20:40:21 +02:00
D G Turner
3f91accbd7 DM: Fix Possible Uninitialized Variable Usage Compiler Warnings. 2018-07-30 14:07:23 +01:00
Adrian Frühwirth
a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +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
36e5374c8b DM: Fix drawSquareD0L() to match original rebuilt sources
The current implementation is shite ((c) Strangerke), so here is one
which matches the rebuilt sources :-)
Given that drawSquareD0R() is identical to the rebuilt sources already
it's safe to assume that no refactoring has been done which could
explain why drawSquareD0L() looks different.

While we're at it, mark that (now correct) fallthrough as intentional
to silence the current gcc7 warning.
2018-03-25 22:22:43 +02:00
Adrian Frühwirth
a222fc8ad8 JANITORIAL: Silence GCC 7 fallthrough warnings
Verified intentional.
2018-03-24 15:53:25 +01:00
Bastien Bouclet
8beb519c5e EVENTS: Rename synthetic to kbdRepeat 2017-11-19 16:12:50 +01:00
Colin Snover
51329c0dc6 ALL: Fix misuse of comma operator 2017-11-10 09:57:03 -06:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Bastien Bouclet
ab1243277a DM: Fix leaking the save thumbnail MemoryWriteStreamDynamic buffer 2017-09-22 07:06:20 +02:00
Torbjörn Andersson
462f1c9859 JANITORIAL: Silence more GCC 7 warnings
There were all flagged as intentional fall throughs. I simply changed
the comments to something GCC would recognize.
2017-08-06 12:26:05 +02:00
Torbjörn Andersson
6cda47ca3d JANITORIAL: Remove superfluous semicolons 2017-04-18 06:49:14 +02:00
Strangerke
f4472d2f0a DM: Fix GCC warnings 2017-01-31 18:15:31 +01:00
Bendegúz Nagy
96c8481f0c DM: Fix formating 2017-01-22 15:56:57 +01:00
Bendegúz Nagy
edf9b2e78a Fix crash at the first corridor and entrance door
Crash caused by missing DisplayMan::_derivedBitmapByteCount values
2017-01-20 21:29:20 +01:00
Bendegúz Nagy
0d77642254 Silence valgrind error messages 2017-01-20 21:26:43 +01:00
Bendegúz Nagy
0eb20223f4 Properly delete leaking DisplayMan::_tmpBitmap 2017-01-20 21:22:50 +01:00
Bendegúz Nagy
0c428e4fd7 Fix regression introduced in 3ab3a85 2017-01-19 22:53:04 +01:00
rootfather
535929aca0 DM: Add POTFILES 2016-11-24 12:46:18 +01:00
Strangerke
2a080979b8 DM: Fix GCC warning (and potential bug) 2016-10-30 12:38:32 -07:00
Strangerke
86e525c1ad DM: Fix isSquareACorridorTeleporterPitOrDoor for the demo, set version of demo to 2.0 2016-10-11 21:44:03 +02:00
Strangerke
7c138231e0 DM: Handle demo dungeon file 2016-10-11 21:44:01 +02:00
Strangerke
93392024d2 DM: Add detection for an amiga demo version 2016-10-09 23:53:45 +02:00
Strangerke
dcfa51cd9d DM: Remove useless variable 2016-10-09 23:50:36 +02:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Strangerke
9ca8d65113 DM: More refactoring 2016-09-28 00:29:07 +02:00
Strangerke
dc19419507 DM: reduce some more redirections 2016-09-26 21:15:04 +02:00
Strangerke
e114e9a47f DM: Some more work on dereferencing 2016-09-25 22:33:40 +02:00
Strangerke
51bef09e4a DM: reduce dereferencing some more 2016-09-25 07:44:04 +02:00
Strangerke
6ea230af48 DM: Fix some CppCheck warnings 2016-09-24 09:41:56 +02:00
Strangerke
3ab3a85657 DM: Fix style 2016-09-24 09:41:52 +02:00
Strangerke
9f852a03b7 DM: Reduce dereferencing of _dungeonMan in MovesensMan 2016-09-24 09:41:48 +02:00
Strangerke
b0e433cec2 DM: Get rid of some dereferencing in DungeonMan 2016-09-23 07:54:54 +02:00
Strangerke
9169099b23 DM: Some renaming, reduce dereferencing 2016-09-22 07:04:23 +02:00
Strangerke
d046d76263 DM: Fix GCC warning 2016-09-22 07:04:19 +02:00
Strangerke
76fcf4f025 DM: Fix GCC warnings reported by eriktorbjorn 2016-09-21 07:57:44 +02:00
Strangerke
4133ea66c1 DM: Rename GraphicIndice members 2016-09-21 07:54:58 +02:00
Strangerke
0ee75674fc DM: Fix two memory leaks 2016-09-20 23:26:23 +02:00
Strangerke
2458fd090c DM: Initialize some variables 2016-09-20 23:14:30 +02:00
Strangerke
fd8082593e DM: Janitorial - remove trailing spaces 2016-09-20 22:31:28 +02:00
Strangerke
58728d2f16 DM: Make use of TimeLineEventType 2016-09-20 22:26:00 +02:00
Strangerke
dd9e43925f DM: Rename TimelineEventType members 2016-09-20 21:51:42 +02:00
Strangerke
706b1b27a4 DM: Fix 2 GCC warnings, some renaming 2016-09-19 21:52:37 +02:00
Strangerke
67f95ce50d DM: Some more renaming 2016-09-19 07:58:42 +02:00
Strangerke
1670cb035f DM: Change the definition of setMapAndTime, move SoundIndex enum to SoundMan 2016-09-19 07:06:55 +02:00
Strangerke
197e85176e DM: Remove a couple of useless checks 2016-09-19 00:55:11 +02:00