Commit Graph
137148 Commits
Author SHA1 Message Date
Max Horn c9c13f49d8 GRAPHICS: fix global constructor warnings
Arguably it's better to use a hard code constant anyway, as the result
of sqrt(2) can vary between platforms (not that it is likely to matter
in practice ;-) ).
2021-08-07 10:46:14 +02:00
Max Horn 5bd265637b ULTIMA: fix global constructor warnings
This also makes the code independent of the user's locale (being
dependent on that by accident can lead to difficult to track down bugs)

The list of whitespace used now is what the C standard guarantees as
minimal set of characters accepted by `isspace` as whitespace.
2021-08-07 10:46:14 +02:00
Max Horn 445fe63524 GRIM: fix global constructor warnings
Since now `_musicTable` always points to a an array allocated
via `new[]`, we can also simplify the `EMISound` destructor.
2021-08-07 10:46:14 +02:00
Max Horn c9731fccd0 GLK: fix global constructor warnings 2021-08-07 10:46:14 +02:00
Max Horn 1d7d03bd6e AUDIO: fix global constructor warnings 2021-08-07 10:46:14 +02:00
Max Horn 5c78ae2e5f AGS: fix incorrect use of delete, should be delete[] 2021-08-07 10:46:14 +02:00
Max Horn b7e6d61669 JANITORIAL: Fix compiler warnings about unused code 2021-08-07 10:46:14 +02:00
Max Horn 84de72ac76 MACOSX: fix deprecation warnings 2021-08-07 10:46:14 +02:00
ScummVM-Translations b2fd07f191 I18N: Update translations templates 2021-08-07 08:44:48 +00:00
djsrv eaee94eab8 DIRECTOR: Set dir separator before parsing options
The directory separator is used when parsing the options.
2021-08-07 10:44:37 +02:00
djsrv d6f255cfff DIRECTOR: Fix start movie path conversion
Paths containing punycode don't necessarily *start* with punycode.
2021-08-07 10:44:37 +02:00
djsrv d2b42b52d1 COMMON: Use Path functions in FSNode constructor
Path has an empty() function and equality operator. No need to convert
to a String first.
2021-08-07 10:44:37 +02:00
djsrv ed41e12fd2 ANDROID: Pass Path to hasFile instead of String
hasFile was changed to take a Path, so converting it to a String and
converting it back didn't make much sense.
2021-08-07 10:44:37 +02:00
djsrv 763d2813a0 COMMON: Replace Path's += with append/join 2021-08-07 10:44:37 +02:00
djsrv 8c4ecf6cc5 COMMON: Add Doxygen comments to path.h 2021-08-07 10:44:37 +02:00
djsrv cedc5678ac DIRECTOR: Fix loading video 2021-08-07 10:44:37 +02:00
djsrv 2eca1126c5 VIDEO: Use Path type in VideoDecoder functions 2021-08-07 10:44:37 +02:00
djsrv e6c696031f DIRECTOR: Punycode dump file names 2021-08-07 10:44:37 +02:00
djsrv 6020f24661 COMMON: Create punycode_encodepath 2021-08-07 10:44:37 +02:00
djsrv 9a22c59b67 WIN32: Fix compilation 2021-08-07 10:44:37 +02:00
djsrv 56087578c7 DIRECTOR: LINGO: Update patcher paths 2021-08-07 10:44:37 +02:00
djsrv 8501ce8e26 COMMON: Convert names to printable in FSDirectory warnings
Unit separator, a control character, is used as a directory separator,
so this is needed now.
2021-08-07 10:44:37 +02:00
djsrv 02aace0598 DIRECTOR: Use ':' as directory separator 2021-08-07 10:44:37 +02:00
djsrv 17297ea7ef COMMON: Use Path type in punycode_decodepath 2021-08-07 10:44:37 +02:00
djsrv 909595176a COMMON: Use Path type in MacResManager functions 2021-08-07 10:44:37 +02:00
djsrv 48ce80a32c AGS: Fix String -> Path conversions 2021-08-07 10:44:37 +02:00
djsrv 0d65c2fd12 ALL: Use Path type in File functions 2021-08-07 10:44:37 +02:00
djsrv 7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
djsrv 0db0b2c201 COMMON: Create Path type 2021-08-07 10:44:37 +02:00
a/ 5a7eb68905 SAGA2: Fix for out-of-bounds intersect 2021-08-07 11:59:38 +09:00
a/ 13310e555e SAGA2: Fix stillDoingVoice 2021-08-07 08:21:00 +09:00
a/ 86108fbd9e SAGA2: Implement play voice command 2021-08-07 08:00:12 +09:00
a/ 45945c989b SAGA2: Fix interval between sound samples 2021-08-07 07:54:46 +09:00
Eugene Sandulenko 60c79db522 DIRECTOR: Reworked --startup-movie processing. Now the options order is arbitrary 2021-08-07 00:02:01 +02:00
athrxx 7b6015bbe1 KYRA: (EOB/SegaCD) - fix text background color glitch 2021-08-06 23:32:47 +02:00
Coen Rampen ad41e96403 SAGA2: Fix MIDI driver type detection
This fixes a small omission in the MIDI driver type detection where it would
not look at the Native MT-32 setting to set MT-32 type on a MIDI device.
2021-08-06 22:37:56 +02:00
Coen Rampen af75c433e0 SAGA: Fix MIDI driver type detection
This fixes a small omission in the MIDI driver type detection where it would
not look at the Native MT-32 setting to set MT-32 type on a MIDI device.
2021-08-06 22:37:46 +02:00
Coen Rampen d65edaa6b3 AUDIO/MIDI: Fix Miles default source volume
The default source neutral volume for the Miles MIDI driver is set at 256.
However, the default source volume was the same as that of the regular MT-32/GM
driver: 255. This would cause a small volume decrease if a game did not set
source volume.

This commit fixes this issue by setting the default source volume for the Miles
MIDI driver at 256.
2021-08-06 21:01:09 +02:00
Coen Rampen 54663b953a AUDIO/MIDI: Fix Miles AdLib initialization
The ScummVM Miles AdLib driver would write some different initialization values
to the OPL registers than the original Miles drivers did. The most significant
difference was the amplitude and vibrato depth.

This commit changes the Miles AdLib driver to set the same values as the
original drivers. It also adds support for initializing a dual OPL2
configuration.
2021-08-06 21:01:09 +02:00
Coen Rampen d73b19b9b3 AUDIO/MIDI: Fix Miles 3 AdLib pitch bend range
Miles 2 uses the default MT-32 pitch bend range of 12 semitones for its AdLib
driver. Miles 3 switched to the default GM pitch bend range of 2 semitones for
AdLib. ScummVM would always use the Miles 2 pitch bend range, which caused
pitch bend for Miles 3 games to sound wrong on AdLib.

To fix this, a property was added to the Miles AdLib driver to specify which
Miles version to emulate. Depending on the value of this option, the correct
default pitch bend range is set.
2021-08-06 21:01:08 +02:00
Orgad Shaneh c0c5330986 CONFIGURE: Suppress output of a52 test app
a52_init() unconditionally calls a52_imdct_init(), which prints "No
accelerated IMDCT transform found". This interferes with the normals
configure output, which looks like this:

Checking for liba52... No accelerated IMDCT transform found
yes
2021-08-06 19:25:31 +03:00
sluicebox 7fab586735 SCI: Update LB1 armor-oiling script patch
Simplifies the patch and updates the comments
2021-08-06 11:08:42 -05:00
djsrv c66e415408 DIRECTOR: LINGO: Process timeout events in score scripts 2021-08-06 11:09:53 -04:00
djsrv bae70bf784 DIRECTOR: Fix where timeout events are handled 2021-08-06 11:09:50 -04:00
athrxx ecd02afeda SCUMM: minor v1-3 walk code cleanup 2021-08-06 16:13:07 +02:00
ysj1173886760 0d32674049 DIRECTOR: fix the implementation of loading startup scripts. 2021-08-06 21:35:12 +08:00
athrxx 3c69292a66 SCUMM: fix Actor_v2 initActor regession 2021-08-06 15:25:31 +02:00
athrxx 3218092187 SCUMM: some walking code cleanup
(move more code from Actor to Actor_v3 and generally try to cleanup the mess I created over time)
2021-08-06 15:22:33 +02:00
djsrv 40c8ab4724 GRAPHICS: MACGUI: Fix registering font to preferred ID 2021-08-06 08:56:32 -04:00
ysj1173886760 ce7cdd11b8 DIRECTOR: use comma to split the parameter of start-movie. implement loading startup movie. 2021-08-06 20:44:02 +08:00