Commit Graph
729 Commits
Author SHA1 Message Date
Filippos Karapetis 34007cb7c2 SCI: Clean up script patches for Hoyle Bridge and Children's Collection
For Hoyle Bridge, we jump directly to the Bridge screen, and it's not
possible to go back to the game selection screen, so we don't need
patches for that version.
For Children's Collection, we now use enablePatch(), which results in
cleaner code.
2022-05-22 19:37:51 +03:00
sluicebox 5e03f7a688 SCI: Fix LONGBOW Amiga when saving peasant woman 2022-05-14 19:57:37 -04:00
sluicebox 0d16892c1d SCI32: Fix GK2 lockups when music volume is turned off
Fixes a bug in the original that locks up many scenes and room
transitions if the music volume slider is lowered all the way
2022-05-12 14:59:53 -04:00
sluicebox 5fa0168e88 SCI32: Fix KQ7 wooden nickel hotspot in Faux Shop 2022-05-09 12:31:04 -04:00
sluicebox 2029c31e2b SCI: Fix QFG3 dropped events during vendor barter
Fixes bug #11422

Thanks to @lwcorp for reporting this
2022-04-27 01:33:19 -04:00
sluicebox 37b90c0ca4 SCI: Fix FPFP Mac easter egg view placement 2022-04-16 13:29:59 -04:00
Filippos Karapetis ec16ebbf96 Revert "SCUMM: Refactor the workaround for the broken sample in Indy4"
This reverts commit c59df76164.
2022-04-16 14:25:51 +03:00
Filippos Karapetis c59df76164 SCUMM: Refactor the workaround for the broken sample in Indy4
This makes the workaround code more self-contained
2022-04-16 14:23:02 +03:00
sluicebox 2c912be553 SCI32: Fix RAMA Demo crash when clicking on controls
Fixes bug #10344
2022-04-09 22:42:56 -04:00
sluicebox 4035e20b11 SCI: Fix SQ3 navigation message not displaying
Fixes bug #13114
2022-04-08 22:57:29 -04:00
sluicebox 437c80e382 SCI: Add delay between LSL2 lottery ticket messages
Thanks to @eriktorbjorn for noticing this
2022-04-08 22:56:39 -04:00
sluicebox 6abb9c6061 SCI: kScummVMSleep is now available in SCI16 2022-04-08 22:42:04 -04:00
sluicebox 0d4771c838 SCI32: Fix LSL6 oil lamp lockup when missing PATCHES
Bug #10484
2022-03-29 09:31:40 -04:00
sluicebox 9afafb700c SCI: Fix SQ4 CD speed throttle in laser hallway
Thanks to AdmiralJay for reporting this!
2022-03-20 17:08:38 -04:00
sluicebox 3ac7b9c67c SCI: Fix SQ4 CD laser beam messages 2022-03-18 20:25:33 -04:00
sluicebox 45c5cf6639 SCI: Fix KQ5 PC-98 Japanese bandit's campfire 2022-03-12 16:45:01 -05:00
sluicebox 13fbaf794c SCI32: Fix QFG4 crashes when pressing direction keys
Now that we correctly pass direction key events to QFG4,
we need to patch the script bugs that they trigger.
These crashes also occur in the original game.

See: 1b4660a508
2022-03-07 17:06:17 -05:00
sluicebox e1c749adc6 SCI: Update SQ1VGA script patch notes 2022-03-03 22:26:09 -05:00
sluicebox cd16390198 SCI: Fix SQ3 ScumSoft announcements never appearing
Fixes bug #13318

Thanks to @Doomlazer for reporting this!
2022-03-02 01:15:43 -05:00
sluicebox e0a7df681d SCI32: Fix LSL7 Peggy crash in Russian version
Fixes bug #13209
2022-01-13 19:35:48 -05:00
sluicebox 4e865e945e SCI: Fix build when SCI32 is disabled. again. 2022-01-09 21:31:22 -05:00
sluicebox 87afecfe13 SCI: Fix QFG1 death message when picking safe 2022-01-09 14:19:25 -05:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
sluicebox f0e7fb8a7a SCI32: Fix LIGHTHOUSE compass-in-submarine error 2021-12-18 21:53:45 -05:00
sluicebox 5063bc2288 SCI: Fix PQ3 lockup when showing judge evidence 2021-12-16 21:31:19 -05:00
sluicebox 0f54e7d358 SCI: Fix SQ3 end credits in version 1.0P 2021-12-09 00:22:42 -07:00
Orgad Shaneh 940c7bfc14 SCI: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
sluicebox e57a0adf57 SCI: Fix KQ6 Mac inconsistent timing in opening movie 2021-11-13 04:07:55 -06:00
Orgad Shaneh 3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
sluicebox cc714bd292 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-10-30 13:19:09 -05:00
sluicebox 72bdc5eab0 SCI: Fix HOYLE4 Gin Rummy undercut sound 2021-10-29 14:50:51 -05:00
sluicebox dc70198c28 SCI32: Fix QFG4 upgraded inventory views
Fixes script bugs where items are upgraded but their graphics aren't
2021-10-29 03:51:31 -05:00
sluicebox 27195a1b0a SCI32: Fix GK2 "bad" cursor not appearing 2021-10-19 08:43:45 -05:00
sluicebox ff11be91c3 SCI32; Improve KQ7 cursor script patch
Removes a jump to an unverified offset
2021-10-19 08:40:33 -05:00
sluicebox 388f3a02ef 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-10-19 08:40:33 -05:00
sluicebox 6ef5aaec6e SCI: Fix QFG3 crash when angering the guardian
Fixes bug #12968

Unrelated to bd992479b3
2021-09-29 04:45:30 -05:00
sluicebox 4be3f914b2 SCI: Replace QFG1VGA fetch workaround with script patch
Spell animation now travels towards the intended plant as in the
original, and also fixes Mac version
2021-09-09 12:39:17 -05:00
Filippos Karapetis df062c6baa SCI32: Fix game options crash in non-English PQ4 versions - bug #12901
Only enable the speech+subs toggle in the English version of PQ4.
French and German versions feature localized text with English voices.
Also, our injected speech+subtitles view is currently only in English.
2021-09-08 22:45:42 +03:00
sluicebox 21b6ea143f SCI32: Delete Mother Goose Banbury Cross script patch
This script patch caused the bug it claimed to fix.

It appears that during SCI32 development in 2017, a bug sent the horse
at Banbury Cross on an incorrect path behind the fountain instead of in
front of it. This would have looked glitchy since the horse has a higher
priority than the fountain. But this was misdiagnosed as a priority bug,
even though the original doesn't have any problems, and the script was
patched to set the horse to a lower priority. The real ScummVM bug was
fixed some time later, and ever since the horse has taken the correct
path and looked glitchy due to the patch setting the wrong priority.
2021-09-07 14:57:23 -05:00
sluicebox 46771958fa SCI: Fix SQ5 cursor when pressing Tab for inventory
Fixes bug #11619
2021-08-25 03:30:34 -05:00
sluicebox 7ceb99d982 SCI32: Exclude script patch when SCI32 is disabled
Fixes compiler warning
2021-08-10 21:46:46 -05: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
sluicebox e8c2671de8 SCI: Improve ECOQUEST2 Ecorder script patches
Simplifies the patches and restores original timing
2021-07-29 21:19:04 -05:00
sluicebox f7058856c6 SCI: Fix KQ6 bugs when clicking Features too quickly
Replaces a room-specific script patch with a generic one that should
fix the bug wherever it occurs. At the time, it wasn't known if this
could occur in other parts of the game under ScummVM, and so patching
the only known symptom was safer.
2021-07-18 19:33:13 -05:00
sluicebox 009b9691dc SCI32: Fix KQ7 volcano erupting after exiting game 2021-07-17 16:52:37 -05:00
sluicebox ccb4aa6f98 SCI32: Fix KQ7 global initialization 2021-07-17 16:52:37 -05:00
sluicebox 2189a8e0fb SCI32: Fix KQ7 statue displaying wrong gems 2021-07-17 16:52:37 -05:00
sluicebox 0174ef9b2e SCI32: Fix KQ7 crash when skipping opening cartoon 2021-06-24 18:27:26 -05:00
sluicebox 1c54777cc5 SCI: Remove broken SQ1 debugging hotkey 2021-06-24 18:27:26 -05:00
sluicebox 0ff7411a1d SCI: Fix SQ1 Spanish broken messages
¡Ay, caramba!
2021-06-18 15:18:49 -05:00