Commit Graph

214 Commits

Author SHA1 Message Date
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
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Ori Avtalion
f35bdb680d TUCKER: Don't try parsing missing debug values in demo
Fixes the demo thinking it's in debug mode and allowing ESC to quit.
2016-03-12 21:29:10 +02:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
0aea4b59df TUCKER: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Ori Avtalion
009f753187 TUCKER: Hide cursor in cutscenes 2016-02-24 00:13:53 +02:00
Ori Avtalion
4b83ce3800 TUCKER: Allow skipping and quitting from cutscene loops 2016-02-22 00:47:05 +02:00
Ori Avtalion
1acbfe8889 TUCKER: Remove errant loop increment (confirmed by cyx) 2016-02-22 00:44:19 +02:00
Torbjörn Andersson
d6aa2494e0 TUCKER: Add missing music to the intro
I'm told not every version of the game plays this. Mine does though,
and I see no harm in adding it for all versions. The code is robust
enough to work even if the "introdub.raw" file is missing completely.
2015-09-27 11:56:46 +02:00
Torbjörn Andersson
c8b8a2c9ee TUCKER: Fix overflow in volume calculation
This affected Bud's line, "Is that the great mystery invention you
had hidden away?" in the intro, making it very hard to hear, and
possibly other sounds as well. I don't know if this was a bug in
the original game, but it's much closer to the English version I
own now.
2015-09-27 11:53:23 +02:00
Strangerke
de4060d4a1 TUCKER: Skip the display of the intro and of the chapter number when a game is loaded from launcher 2014-05-25 14:05:14 +02:00
Strangerke
006690789a TUCKER: Add a check to error out when the index isn't found for a given location number 2014-05-24 13:53:42 +02:00
Strangerke
2dc70a9e8b TUCKER: Add a couple of safeguards to avoid out of bound access during the display of credits 2014-05-24 12:55:25 +02:00
Strangerke
e53743ddf9 TUCKER: Add a safeguard to avoid a potential out of bound access 2014-05-24 10:51:58 +02:00
Strangerke
e57a54d1c1 TUCKER: Change the type of the return value of handleSpecialObjectSelectionSequence() 2014-03-21 08:11:07 +01:00
Strangerke
3464bc2051 TUCKER: Fix some uninitialized variables 2014-03-20 07:00:13 +01:00
Strangerke
7363009cd5 TUCKER: Initialize some more pointers with nullptr instead of 0 2014-03-15 13:36:35 +01:00
Strangerke
f30246187e TUCKER: Use boolean instead of integer in several places 2014-03-15 12:34:08 +01:00
Strangerke
661f041472 TUCKER: Initialize some pointers with nullptr instead of 0 2014-03-15 12:02:44 +01:00
Strangerke
0e48803b42 TUCKER: Add a safeguard in updateCharPosition() to avoid a potential out-of-bounds read, change the type of a variable to boolean 2014-03-15 11:42:57 +01:00
Strangerke
3c76acf445 TUCKER: Some renaming in Graphics 2014-03-09 15:13:56 +01:00
Strangerke
369b2c18be TUCKER: Some more refactoring 2014-03-09 11:30:27 +01:00
Strangerke
e4cbc67493 TUCKER: Some more refactoring 2014-03-09 00:35:06 +01:00
Strangerke
113a4ac71a TUCKER: Fix some values assigned to _csDataLoaded 2014-03-09 00:15:27 +01:00
Strangerke
28ade2239a TUCKER: make _panelLockedFlag a boolean instead of an integer 2014-03-09 00:12:34 +01:00
Strangerke
47f9a2dd10 TUCKER: Fix some values assigned to _skipCurrentCharacterDraw 2014-03-09 00:03:21 +01:00
Strangerke
0b9ba6ad29 TUCKER: Some more renaming 2014-03-09 00:00:27 +01:00
Strangerke
0c247b26b4 TUCKER: Some more renaming 2014-03-08 18:36:54 +01:00
Strangerke
81815f0b8a TUCKER: Change the type of some variables to boolean 2014-03-08 18:07:24 +01:00
Strangerke
65b819305d TUCKER: Initialize some uninitialized variables 2014-03-08 17:49:53 +01:00
Strangerke
88aa12387f TUCKER: Avoid a potential string overrun by using strlcpy instead of strcpy 2014-03-07 19:33:31 +01:00
Strangerke
9ce5f1c90c TUCKER: Use a boolean for drawFlag instead of an integer 2014-03-07 19:21:13 +01:00
Strangerke
d0b9a52f64 TUCKER: Some more renaming 2014-03-07 19:21:11 +01:00
Strangerke
fbc63ebd68 TUCKER: Use boolean in place of integer for some members of the Sprite structure 2014-03-07 17:50:36 +01:00
Strangerke
854635c5c1 TUCKER: Start renaming struct members to follow coding/naming conventions 2014-03-07 17:34:48 +01:00
Strangerke
cf33c60282 TUCKER: Remove some useless modification of sprite state 2014-03-07 14:35:56 +01:00
Strangerke
705b48025b TUCKER: Reduce the scope of some variables 2014-03-07 14:33:43 +01:00
Matthew Hoops
740b6e8fbd IMAGE: Move all ImageDecoders to image/ 2014-02-28 00:27:28 -05:00
Johannes Schickel
9e90dcd346 TUCKER: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
dergunov
3a5554f7ba TUCKER: Fix bug #6381 - "TUCKER: In 3rd part, "Use Peg" fails..."
"Use Peg" is a single-item action and these are hardcoded in the
engine. The default otherwise is dual-item action "Use X on Y".
2014-02-10 14:48:50 +00:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Johannes Schickel
4318410731 TUCKER: Take advantage of Surface::getPixels. 2013-08-03 04:02:53 +02:00
Johannes Schickel
d26817a6b8 TUCKER: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:34 +02:00
D G Turner
7381fcdf30 TUCKER: Amend fix for bug #3614697 - "Spanish version uncompletable..."
The mof instruction needs to return 0 or 1 to continue execution, rather
than 2 which indicates to end table instruction execution. Using 0 as
this is most likely correct value.
2013-07-16 20:30:30 +01:00
D G Turner
485118ecd9 TUCKER: Add support for skipping unhandled/invalid instructions.
This ensures that if any unhandled/invalid instructions are present,
they are skipped, rather than locking up engine execution.

This is a secondary fix for bug #3614697 - "Spanish version
uncompletable at end of 2nd part" and any other future bugs of this
type.
2013-07-14 05:07:11 +01:00
D G Turner
1946dead77 TUCKER: Fix for bug #3614697 - "Spanish version uncompletable..."
This add support for the unhandled "mof" instruction present in the
Spanish version. This effectively skips it as a NOP/invalid, which
prevents it locking up the game at the end of the 2nd part.
2013-07-14 05:04:02 +01:00