781 Commits

Author SHA1 Message Date
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko
4644b00011 DM: Use AD_ENTRY2s in detection table 2020-11-28 14:05:27 +01:00
Eugene Sandulenko
7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko
7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
aryanrawlani28
d26bbe521c ENGINES: ALL: Finish renaming ME & AME classes
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
2020-10-03 14:56:36 +02:00
aryanrawlani28
29ceb07959 ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28
f3b9477893 ENGINES: ALL: Add header guards for the new detection-header files. 2020-10-03 14:56:36 +02:00
aryanrawlani28
8189a05316 ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28
26c475b784 DM: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
aryanrawlani28
b027c8f11e DM: Move common-game & detection code to header files from dm.h
- Move enums to detection_enums.h
- Move DM..GameDescription struct to detection.h
2020-10-03 14:56:36 +02:00
Eugene Sandulenko
d01ac29dd2 DM: Properly set mapX and mapY. CID #1362609 2020-08-29 17:22:24 +02:00
Paul Gilbert
cefb7cfdfe DM: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet
10c50b40ab DM: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko
6031ea426d DM: Added override keywords 2020-02-05 15:04:50 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
D G Turner
4b6cb68784 DM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-16 10:10:45 +00:00
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