Commit graph

123649 commits

Author SHA1 Message Date
Benoit Pierre
3baef8fa3b XEEN: remove dead code
There's no need for `Sound::_priorMusic`.
2021-12-02 20:01:26 -08:00
Benoit Pierre
4754bd059a XEEN: remove dead code
`Sound::playSong(const byte *data)` and `Sound::restartSong()` are never used.
2021-12-02 20:01:25 -08:00
Paul Gilbert
621be0efc4 NEWS: Mention Rose Tattoo character animation 2021-12-02 20:01:25 -08:00
Torbjörn Andersson
deafe94153 SHERLOCK: Fix missing Rose Tattoo talk animations
We were comparing the wrong object name in the Rose Tattoo-specific
code, so the speaker was never found. It's not clear to me if this only
affected Watson, or if other NPCs were affected as well.

And while it may not make any difference, make sure that the "portrait"
string we compare against is also no more than four characters long,
since that's what the original engine did.
2021-12-02 20:01:25 -08:00
Martin Gerhardy
b4b64551c7 TWINE: Adeline software jingle keeps looping through the startup screens
https://bugs.scummvm.org/ticket/11989
2021-12-02 23:36:39 +01:00
Paweł Kołodziejski
38fed282cd TINYGL: Fixed mismatch malloc/new 2021-12-01 22:40:31 +01:00
Paweł Kołodziejski
f1f89173f2 TINYGL: Fixed reading outside of buffer 2021-12-01 22:40:21 +01:00
Le Philousophe
5f8dab2e46 GRIM: Fix bindings in the keymapper 2021-12-01 22:39:23 +01:00
Paweł Kołodziejski
240156dfca
ICB: Use jpeg from common image 2021-12-01 22:17:44 +01:00
Martin Gerhardy
c2ffa13cce TWINE: Text is different from speech for inventory items
In asylum when Twinsen discovered his id card and holomap the text was not the same as the speech

https://bugs.scummvm.org/ticket/13115
2021-11-30 07:30:50 +01:00
Paul Gilbert
37f37542d6 NEWS: Mention Sherlock matches fix 2021-11-29 20:38:30 -08:00
Torbjörn Andersson
9ce1940df1 SHERLOCK: Load frames on demand when possible
This fixes bug #13101, since it no longer tries to decode
catastrophically bad frames. (Some bad frames will still be used, but
that's survivable.)
2021-11-29 20:27:22 -08:00
Martin Gerhardy
324363b776 TWINE: Adeline software jingle keeps looping through the startup screens 2021-11-29 17:22:11 +01:00
Martin Gerhardy
191cf959c4 TWINE: removed broken crossfade feature 2021-11-29 17:17:49 +01:00
Martin Gerhardy
724a4f24f2 TWINE: fixed polygon clipping issue
https://bugs.scummvm.org/ticket/12020
2021-11-29 16:27:03 +01:00
Martin Gerhardy
e446215fec TWINE: Rendering artifacts if 3d model is clipped
https://bugs.scummvm.org/ticket/12020
2021-11-29 16:10:13 +01:00
Torbjörn Andersson
9f9dd7ab9f NEWS: Mention fix for crash loading HE savegames 2021-11-29 07:33:28 +01:00
Torbjörn Andersson
846e19d38c SCUMM: Don't try to apply workarounds to unloaded resources...
...because ScummVM will crash trying to do so.

This was discovered in bugs #13111 and #13113, where loading a HE
savegame does not load sound resource 1 but still tried to apply
workarounds to it. I don't know if this is the only case.
2021-11-29 07:32:39 +01:00
Martin Gerhardy
a89f409387 TWINE: fixed dotemu cd track issue 2021-11-27 20:37:25 +01:00
sluicebox
cdd463a37a VIDEO: Fix QuickTime decoding when color depth is 32
Color depths greater than 32 have grayscale bit 0x20 set, but the
decoder incorrectly treats 32 as grayscale and and clears the bit,
leaving the color depth as zero and causing codecs to fail.

Confirmed correct behavior in the ffmpeg code that the decoder was
based off. The decoder was introduced with the Mohawk engine in
2009,so presumably no Mohawk movies had color depth 32.

Fixes videos in the Director game Virtual Cocktail Bar
2021-11-26 21:30:07 -07:00
sluicebox
4180555675 SCI: Fix KQ6 Mac inconsistent timing in opening movie 2021-11-26 21:30:07 -07:00
sluicebox
f4aa6b9578 VIDEO: Fix QuickTime decoding of edits with mediaTime
QuickTimeDecoder has a bug which causes the mediaTime offset to be
ignored when a track begins with an empty edit and is followed by an
edit with a non-zero mediaTime. This causes the KQ6 Mac opening movie
to start several tracks at unintended frames (they're never supposed to
be displayed) and the intended frames at the end of the edit to never
be displayed. (Bug #11085)
2021-11-26 21:30:07 -07:00
sluicebox
6a55907932 VIDEO: Limit QuickTime workaround to Riven
QuickTimeDecoder has a workaround for a video in a Spanish version of
Riven, but this workaround breaks valid QuickTime videos such as the
KQ6 Macintosh opening movie. (Bug #11085)

Until the original Riven video bug can be debugged to improve the
workaround, it is now disabled unless an engine enables it.

Workaround added in: b8abe40085
2021-11-26 21:30:07 -07:00
sluicebox
2830063c0e VIDEO: QuickTime comments, mild cleanup 2021-11-26 21:30:07 -07:00
sluicebox
2021a1495c SCI32: Remove kFileIOReadString warning
It's normal for fewer charcters to be available than the maximum buffer
size . Confirmed that nothing depends on not zeroing out the remaining
bytes. (In fact, we've had problems before when not zeroing out buffers
in other kernel functions as scripts have been known to assume success
and use the buffer regardless of the return value.)
2021-11-26 21:30:07 -07:00
sluicebox
c67adbb301 CREATE_PROJECT: Add --include-dir and --library-dir
Additional include and library directories can now be added.

This is most useful to Xcode Mac projects where a vanilla Homebrew setup
requires manually adding five directories through the Xcode UI and then
repeating that every time the project needs to be regenerated.

Now create_project can be scripted to regenerate a working Mac project
without any extra Xcode steps.
2021-11-26 21:30:07 -07:00
sluicebox
f08f2a52fc CREATE_PROJECT: Add DETECTION_FULL feature
Allows disabling full detection with --disable-detection-full,
just like the configure script.
2021-11-26 21:30:07 -07:00
sluicebox
5a63f261b6 SCI: Only throttle kGameIsRestarting from game loops
Prevents extra speed throttling from being applied when a script queries
the restart flag. Some rooms such as the KQ6 caves and the QFG4 caves do
this on every game cycle. In practice, this extra throttling didn't seem
to have much effect, but the intent is to only throttle game loops and
the script patches that fix inner loops.

Updated script patches to call kGameIsRestarting like game loops.
2021-11-26 21:30:07 -07:00
sluicebox
ebfecf8487 SCI: Fix HOYLE4 Gin Rummy undercut sound 2021-11-26 21:30:07 -07:00
sluicebox
a50d84a32b WIN32: Fix build when USE_WINDBG is defined 2021-11-26 21:30:07 -07:00
sluicebox
55488baecd SCI: Update QFG3 uninit read workaround 2021-11-26 21:30:06 -07:00
sluicebox
71875456ab SCI32: Add QFG4 uninit param read workaround 2021-11-26 21:30:06 -07:00
sluicebox
2387712453 SCI32: Fix QFG4 upgraded inventory views
Fixes script bugs where items are upgraded but their graphics aren't
2021-11-26 21:30:06 -07:00
sluicebox
c8fb104306 SCI: Add uninit read workarounds for QFG3, QFG4
Fixes bugs #13045, #13046
2021-11-26 21:30:06 -07:00
sluicebox
2dcc62bfe3 SCI: Fix class_table debugging command output 2021-11-26 21:30:06 -07:00
Ralph Caraveo III
75f7151676 SCI: Clarify passing of parameter: pass instead of parse for class_table debug command.
Minor wording change to say pass instead of parse.
2021-11-26 21:30:06 -07:00
sluicebox
ca03effcb5 SCI32: Fix GK2 "bad" cursor not appearing 2021-11-26 21:30:06 -07:00
sluicebox
2740f075d4 SCI32; Improve KQ7 cursor script patch
Removes a jump to an unverified offset
2021-11-26 21:30:06 -07:00
sluicebox
e3ae9057ed SCI32: Create kScummVMSleep for script patches
We have several SCI32 script patches that replace kGetTime spin loops
with calls to kWait for the intended delay. This prevents blocking
the main thread and allows ScummVM to be responsive and update the
screen. But kWait isn't a simple sleep, it's a throttling function,
and the duration that it sleeps (if any) is determined by the time
since it was last called. kWait was only in SCI16 interpreters so it
had to be restored to SCI32 and this required a further workaround
for Phant2 compatibility.

Now we have a dedicated custom kernel function, kScummVMSleep, which
does a simple sleep so that SCI32 script patch delays are consistent
and the Phant2 workaround isn't needed. This approach is similar to
kScummVMSaveLoad.
2021-11-26 21:30:06 -07:00
sluicebox
e66e6c374c SCI: Handle HOYLE4 Mac palette endianness 2021-11-26 21:30:06 -07:00
sluicebox
ffbc5f37b7 SCI: Add LAURABOW2 workaround for uninit read in museum
Prevents a warning that frequently occurs during most of the game
as actors walk around the museum.
2021-11-26 21:30:06 -07:00
sluicebox
ff357137b0 SCI: Apply workarounds to Mac games without object names
Restore object names in QFG1VGA workarounds that were removed to
accommodate the Mac version. Instead, don't match object names
on games that are known to not have them, since there are several.

Fixes workarounds not being applied to HOYLE4 Mac and LSL6 Mac.
2021-11-26 21:30:05 -07:00
sluicebox
b44afb45e6 GUI: Don't apply values from disabled subtitle toggle
When the subtitle toggle controls are disabled for a game, don't
read the value and then set config values based on it.
This caused "Override global audio settings" to always set "subtitles"
and "mute_speech" even when the controls were disabled.

Fixes bug #13007 where "Override global audio settings" always
mutes the speech clips in Hoyle4.
2021-11-26 21:30:05 -07:00
sluicebox
11d1088298 SCI: Remove redundant check 2021-11-26 21:30:05 -07:00
sluicebox
5bbf5bd603 SCI: Remove GUIO_NOSPEECH from HOYLE4
HOYLE4 has speech. Bug #13007
2021-11-26 21:30:05 -07:00
sluicebox
a1edf88adb SCI: Fix kSetPort return value
SSCI doesn't return zero; it doesn't return anything. This shouldn't
affect any games since no scripts should depend on a non-existent
return value, but this discrepancy came up while investigating a
fan script that accidentally relies on this.
2021-11-26 21:30:05 -07:00
sluicebox
7468a2e17f CLOUD: Fix crash on HTTP request with unparsed path
Occurred during an nmap scan. Fixes bug #12997
2021-11-26 21:30:05 -07:00
Martin Gerhardy
85f1c96fb5 TWINE: No music in FLA movie
the original code only stops the samples - not the midi or cd music
2021-11-26 20:59:37 +01:00
Le Philousophe
d7fc4b472b RASPBERRYPI: Don't make use of obsolete Broadcom libraries 2021-11-21 19:01:07 +01:00
Paul Gilbert
2dd1f938ef GLK: ALAN3: Added detection 2021-11-16 20:38:46 -08:00