Commit Graph

1326 Commits

Author SHA1 Message Date
neuromancer
e7ff394f33 MADS: Enable the optional use of TTS to read descriptions as a narrator in Rex Nebular 2019-12-21 16:45:35 +02:00
D G Turner
e75722665d MADS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-06 03:34:11 +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
Filippos Karapetis
913229f9db MADS: Implement V2 DynamicHotspots::add() 2019-08-04 14:05:09 +03:00
Filippos Karapetis
8940601413 MADS: Draw the portrait in V2 game dialogs 2019-08-04 14:05:08 +03:00
Bastien Bouclet
c08bb9cb4a ENGINES: Use an uppercase C for the metaengine copyright strings 2018-12-10 18:39:26 +01:00
Bastien Bouclet
9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
Paul Gilbert
11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Adrian Frühwirth
9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Paul Gilbert
492605025c MADS: NEBULAR: Disable the copy protection dialog by default
The GOG release is confirmed as having it disabled, so ScummVM
will do likewise and have it disabled by default
2018-04-12 19:19:00 -04: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
Paul Gilbert
89d20bafa9 MADS: Fix crash when Rex is locked in cell 2017-11-21 19:33:02 -05: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
Torbjörn Andersson
70a2ca8b7d JANITORIAL: Silence more GCC 7 warnings
All these fall through were marked as deliberate, so again I've only
changed the comment to silence GCC.
2017-08-06 13:30:51 +02:00
D G Turner
09269c2e4c MADS: Fix Unused Private Variable Compiler Warning. 2017-01-12 06:41:00 +00:00
rootfather
f72497665c MADS: Update POTFILES 2016-11-26 11:14:03 +01:00
rootfather
763de36904 MADS: Add POTFILES 2016-11-24 11:57:14 +01:00
Paul Gilbert
bcad326ccb MADS: Mark unsupported games as unstable 2016-11-21 20:24:25 -05:00
Paul Gilbert
ec343f2dea MADS: Fix spelling mistake 2016-10-31 18:10:16 -04:00
Willem Jan Palenstijn
4071871610 MADS: Fix two off-by-ones in Fader::insertionSort
Fixes bug #9631.
2016-10-26 22:30:02 +02:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Alexander Tkachev
b665fc933d ALL: Make simpleSaveNames() a MetaEngineFeature
Added it into hasFeature() of all engines which returned `true` in
simpleSaveNames() before.

As mentioned in #788, SCI is not always using simple names, so it
doesn't have such feature now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
ab1d160ec8 ALL: Add MetaEngine::simpleSaveNames()
Engines with "simple" savenames would support "Run in background" in
save/load dialog and gradual save slots unlocking. Other engines
save/load feature would be locked until save sync is over.
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
0182a8a230 MADS: Fix warning 2016-07-29 05:47:31 +03:00
Eugene Sandulenko
12728cf4dd MADS: Fix debug channel initialization 2016-07-28 11:40:29 +03:00
Paul Gilbert
d8fec87200 MADS: Fix incorrect indentation 2016-07-20 19:34:24 -04:00
Hubert Maier
02dedfe568 Fix MADS copyright sign 2016-05-29 15:14:19 +03:00
Paul Gilbert
f582548516 MADS: Remove redundant allocation in surface creation 2016-05-27 06:00:58 -04:00
Paul Gilbert
78e52365bd MADS: Refactor MSurface and Screen to not use virtual inheritance 2016-05-26 21:37:52 -04:00
Eugene Sandulenko
ca6a414ad0 MADS: Fix class initialization 2016-05-02 17:39:20 +02:00
Rob Loach
aa95183b93 MADS: Remove git conflict markers in menu_views.h 2016-04-16 20:23:10 +03:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Paul Gilbert
b4e3d4abc1 MADS: Changed engine to use Graphics::ManagedSurface 2016-03-14 20:56:26 -04:00
Johannes Schickel
bed73e6cfa MADS: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Paul Gilbert
fdcdf7e326 MADS: NEBULAR: Fix hotspot for doll in laboratory 2016-02-24 20:59:44 -05:00
Alexandre Detiste
6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Paul Gilbert
d1ac57fa49 MADS: Fix stop stopWalkers list incorrectly filling up 2016-02-06 17:27:09 -05:00
Paul Gilbert
d18483142d MADS: Fix game loop crash 2016-02-06 15:28:13 -05:00
Filippos Karapetis
b84378051d MADS: Change the engine description
The engine will support more games than Rex, so its actual name is more
fitting than a single game name
2016-02-06 00:12:41 +02:00
Johannes Schickel
56a84cee0a MADS: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Paul Gilbert
d7420c9128 MADS: Extra conversation dialog setup 2016-01-18 17:12:54 -05:00
Paul Gilbert
84eca2f5b0 MADS: Fix loading of conversation dialog messages 2016-01-17 23:23:52 -05:00
Paul Gilbert
5afdf3277e MADS: Beginnings of loading Phantom-style dialogs 2016-01-17 17:57:10 -05:00
Paul Gilbert
8f15e3d6ef MADS: Fix call to play speech in generateMessage 2016-01-17 08:58:39 -05:00
Paul Gilbert
d750c85fc8 MADS: Preliminary converstation message generation 2016-01-16 23:51:46 -05:00
Paul Gilbert
f04cadf0a4 MADS: Properly name popup fields in conversation class 2016-01-16 16:32:24 -05:00
Paul Gilbert
c826047cc4 MADS: Implement conversation set node script opcode 2016-01-15 23:38:58 -05:00
Paul Gilbert
dd7f1421d4 MADS: Implement conversation message opcode 2016-01-15 23:18:57 -05:00