Commit Graph

454 Commits

Author SHA1 Message Date
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
Adrian Frühwirth
a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Adrian Frühwirth
9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +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
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
Paul Gilbert
659fdfaf9e VOYEUR: Workaround original game using invalid hotspot Ids 2017-08-07 19:20:05 -04:00
Paul Gilbert
27e141eaf4 VOYEUR: Fix exiting game from the VCR screen 2017-08-06 23:02:55 -04:00
Paul Gilbert
ed04ef4929 VOYEUR: Fix playback of audio events on VCR, thanks to Bakhtosh 2017-08-06 22:58:09 -04: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
Bastien Bouclet
ec49730711 VIDEO: Allow setting the mixer sound type used to play audio tracks 2017-07-27 06:40:07 +02:00
Paul Gilbert
43440193f0 VOYEUR: Fix backgrounds not showing for static rooms 2017-06-10 18:21:04 -04:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Fedor
6417a9cc5d VOYEUR: remove empty first line 2016-10-04 22:21:22 +03: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
Hubert Maier
0413b350f1 Fix Voyeur copyright sign 2016-05-29 15:15:26 +03:00
Paul Gilbert
4d933a15f6 VOYEUR: Reorder ViewPortResource fields to fix VS packing warnings 2016-05-26 22:17:42 -04:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Paul Gilbert
c05a09d337 VOYEUR: Changed engine to use Graphics::ManagedSurface 2016-03-14 20:56:30 -04:00
Johannes Schickel
9eed3e15fb VOYEUR: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
6b7d0554a4 VOYEUR: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Strangerke
273304d9ad VOYEUR: change the type of the variable in a for loop 2016-01-12 12:10:19 +01:00
Strangerke
eed0fe1a2d VOYEUR: Fix bitwise comparison, make more use of DISPFLAG enum 2016-01-12 12:01:01 +01:00
Strangerke
56b273e0d2 VOYEUR: Replace a check on a value by the use of an enum 2016-01-12 11:46:33 +01:00
Johannes Schickel
575bcb54a2 VOYEUR: Fix formatting in sound.cpp. 2016-01-12 11:49:00 +01:00
Strangerke
8584315867 VOYEUR: Reduce variable scope, fix typo in comment 2016-01-12 11:19:39 +01:00
Strangerke
a2cb8ddcdd VOYEUR: Add a safeguard in getVOCFileName 2016-01-12 11:14:44 +01:00
Strangerke
427850b78d VOYEUR: Remove useless global variable 2015-12-02 11:41:55 +01:00
Torbjörn Andersson
742b04cc49 VOYEUR: Remove unnecessary semicolon 2015-05-31 09:21:47 +02:00
Strangerke
7ebd6c974c VOYEUR: Fix bug in vDoCycleInt 2015-01-26 23:14:16 +01:00
Strangerke
21a6618919 VOYEUR: Add missing break 2015-01-26 22:31:34 +01:00
Paul Gilbert
ff84741d39 VOYEUR: Fix crash when playing video #42 2014-07-03 21:00:17 -04:00
Paul Gilbert
a7a8b49567 VOYEUR: Fix double apartment enter animation when loading save from launcher 2014-07-03 20:37:08 -04:00
Paul Gilbert
7cc44dbdf8 VOYEUR: Fix to show cursor after loading savegame 2014-07-01 21:54:22 -04:00
Johannes Schickel
d1157af89b YOVEUR: Enable engine by default.
We ship this with 1.7.0 according to our release plans, thus it should really
be enabled by default.
2014-07-01 19:49:50 +02:00
Paul Gilbert
1f26a75bb9 VOYEUR: Don't reset mansion view position after looking at rooms 2014-06-08 14:17:25 -04:00
Strangerke
48ffd0255d VOYEUR: Disable the if statement with identical statements in its branches, add a comment 2014-06-08 09:52:36 +02:00
Sven Hesse
fc250701c5 VOYEUR: Janitorial - Remove trailing whitespace 2014-05-28 23:30:29 +02:00
Johannes Schickel
3dccfda1cf VOYEUR: Don't overwrite "exit" command in the debugger.
It actually overwrite "exit" by cmdExit and thus effectively the same command...
2014-05-27 02:04:08 +02:00
Johannes Schickel
30d64edac4 ALL: Make Debugger command function names conform to our guidelines. 2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
D G Turner
4e47f42853 VOYEUR: Make engine pointer in graphics class private. 2014-05-26 20:45:47 +01:00
Paul Gilbert
8d31150c09 VOYEUR: Fix showing credits in the introduction 2014-05-26 15:12:11 -04:00
Strangerke
4b8d0c5916 VOYEUR: Remove useless usage of pointer in EventManager 2014-03-24 18:17:54 +01:00
Strangerke
27a45d169e VOYEUR: Use a nullptr instead of a 0 in a return value 2014-03-17 21:19:28 +01:00
Strangerke
175cc60a0f VOYEUR: Initialize an unitialized variable 2014-03-16 14:55:34 +01:00
Strangerke
72770f2341 VOYEUR: Fix some missing variable initializations 2014-03-16 12:06:24 +01:00
Strangerke
a2380c7576 VOYEUR: Move the initialization of vm to the constructor of BoltFilesState 2014-03-15 10:43:06 +01:00
Strangerke
f73901ca9a VOYEUR: Add a check to avoid potential use of negative value as an array index 2014-03-15 10:23:42 +01:00