Commit graph

475 commits

Author SHA1 Message Date
sluicebox
10d3d5a841 SCI: Add workarounds for original save/restore dialogs 2023-01-25 18:41:06 -08:00
sluicebox
76044dc51a SCI: Fix CNICK_LONGBOW uninit read workaround
This uninitialized variable read wasn't being detected until the
variable layout was fixed in: 30fad94e9a
2022-12-21 12:26:51 -08:00
sluicebox
aaebd2aa85 SCI: Fix some comments 2022-11-12 19:33:37 -08:00
sluicebox
b5b94a03da SCI: Convert LB2 German fix to message workaround 2022-11-08 16:37:18 -08:00
sluicebox
ddf7b7da14 SCI: Add KQ6 Mac workaround for long About message 2022-11-08 16:37:18 -08:00
sluicebox
d2d46b67c5 SCI: Fix KQ5 bandit music fade workaround
The existing workaround prevented a crash but it performed volume tests
on an object's offset and abruptly ended the bandit music instead of
fading it out as in the original.

The broken kDoSoundFade call is redundant because a second script calls
kDoSoundFade correctly at the same time. Now the broken call is ignored
and the music fades out normally.

Bug #5078
2022-07-30 16:39:24 -04:00
Donovan Watteau
27f9a460b5 JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
sluicebox
0eac3efe70 SCI32: Add LSL6HIRES kResCheck Wave/Audio handling
Adds missing fallback behavior that appeared in at least LSL6-Hires.
Removes a workaround that only addressed a symptom of this bug;
the buggy scripts only execute when a correct call to kResCheck fails.

- Clicking four times on lobby sign no longer crashes
- Sound effect now plays when quitting during end credits

Fixes bug #13549
2022-06-06 17:32:50 -04:00
sluicebox
f45a5eff90 SCI: Fix QFG3 ring rope uninit read with script patch
Restores original behavior. The workaround caused the player to
always win and receive points even if they lost.
2022-05-24 16:57:45 -04:00
sluicebox
b3a77a79a9 SCI: Add QFG3 workaround for casting open on wall 2022-05-24 16:57:45 -04:00
sluicebox
c4a95fad5c SCI: Remove duplicate QFG3 uninit read workaround 2022-05-24 16:57:45 -04:00
sluicebox
b74b93ad46 SCI32: Fix LSL6HIRES inventory background color
Fixes bug #13497
2022-05-22 17:11:26 -04:00
sluicebox
2c94bc32ba SCI: Fix LSL5 Mac password prompt 2022-04-17 21:14:10 -04:00
sluicebox
6abbb67bf8 SCI: Update QFG3 menu workaround to handle Quit
Fixes bug #13161
2022-01-10 16:16:00 -05:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
940c7bfc14 SCI: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
sluicebox
3e877ab1d8 SCI: Update QFG3 uninit read workaround 2021-10-29 12:20:22 -05:00
sluicebox
b67cfc203d SCI32: Add QFG4 uninit param read workaround 2021-10-29 03:51:31 -05:00
sluicebox
ab20c9bee2 SCI: Add uninit read workarounds for QFG3, QFG4
Fixes bugs #13045, #13046
2021-10-28 18:23:47 -05:00
sluicebox
1db2211de3 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-10-15 21:34:21 -05:00
sluicebox
3ad5a82760 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-10-15 21:34:21 -05:00
sluicebox
17917f3613 SCI: Add QFG1VGA Mac workaround for Brigands 2021-09-09 12:39:17 -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
sluicebox
412cd4ca4e SCI: Add MOTHERGOOSE256 workarounds for restarting 2021-09-08 17:02:36 -05:00
sluicebox
e5951416d4 SCI: Improve MOTHERGOOSE256 save-id workaround
The existing workarounds for this game's unique way of handling saves
assumed that the player restored a game at some point before the end.
Starting a new game and playing to the end would still cause an error
in the SCI1.1 floppy version because the game's save global would
contain an SCI id instead of our virtual id; we were only patching the
global when restoring.

Now we also patch the global on kSaveGame so that it always contains a
virtual id when there is a saved game.

Note that the existing uninitialized read workaround had no effect since
the read occurred in a local procedure but the workaround entry didn't
include a local procedure signature. Updating that workaround wouldn't
fix this; there would still be scenarios where the wrong save would be
auto-deleted.

Fixes bug #5294
2021-09-08 17:02:36 -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
15fb671cd1 SCI32: Add more KQ7 workarounds for Malicia's house
Big thanks to sixsevsairis for discovering this
2021-07-29 19:47:53 -05:00
sluicebox
11fec236a2 SCI: Make KQ6 'Tickets, only' script patch a workaround
In addition to simplifying, this fixes the message in Spanish and
Italian versions. The CD patch signature matched these floppy versions
too and altered their correct messages.
2021-04-26 22:50:10 -07:00
sluicebox
d52539435b SCI: Add PEPPER workaround for uninit read 2021-03-20 13:37:37 -07:00
sluicebox
9b31cce7b9 SCI32: Fix SQ6 missing message in brain 2021-02-22 16:38:03 -08:00
sluicebox
eee7882c9a SCI: Fix LSL3 volume slider
There was a workaround for this but it didn't fix the script bug.
Instead it set the volume to max every time the volume dialog opened.
2020-09-28 05:14:48 -07:00
sluicebox
3e176b38d2 SCI: Add workarounds for NRS SQ4 Update 1.3
Workarounds for this excellent fan patch were deliberately
excluded because previous versions were distributed with a full
version of the game, but 1.3 is distributed as a true patch set.

Confirmed that this version is now completable.
2020-09-24 04:23:06 -07:00
sluicebox
38da9bf878 SCI: Add SQ1 workaround for teleporting 2020-08-24 21:46:43 -07:00
sluicebox
800558bc8f SCI: Add SQ3 Mac introduction workaround 2020-06-22 00:07:40 -07:00
sluicebox
67b907a52a SCI: Add KQ6 workarounds for castle basement 2020-06-16 20:54:10 -07:00
sluicebox
3f9c229bd0 SCI32: Fix some QFG4 missing messages 2020-05-29 11:12:11 -07:00
sluicebox
ea3a6c25c4 SCI: Fix ECO2 Missing messages at the camp 2020-05-19 23:01:06 -07:00
sluicebox
43ae5c0e73 SCI: Fix QFG3 workaround when throwing sword
Fixes bug #11477
2020-05-19 07:36:14 -07:00
sluicebox
12d37a352b SCI32: Implement KQ7/SHIVERS custom Mac saving
Implements the custom Mac save and restore kPlatform subops
for KQ7 and Shivers. Still TODO: Mothergoose and Lighthouse.
2020-04-19 23:46:13 -07:00
sluicebox
5b8dd68d21 SCI32: Add PQ4 Mac save/restore workarounds 2020-04-17 17:47:58 -07:00
sluicebox
07827aeb20 SCI32: Add PHANT1 Mac kArrayFill workarounds 2020-02-07 13:15:43 -08:00
sluicebox
c1fb6562ac SCI32: Add Save/Restore support for Mac games 2020-01-30 16:56:01 -08:00
sluicebox
8fcff44b40 SCI32: Fix PHANT2 computer scrollbar crash
Fixes bug #10391
2020-01-21 21:02:48 -08:00
sluicebox
6304e59a2b SCI32: Fix GK2 Gerde missing message 2020-01-06 20:55:49 -08:00
sluicebox
c3c23c28a1 SCI32: Add GK2 workaround for flag debug dialog 2020-01-02 15:29:15 -08:00
sluicebox
6ab1d6ac7b SCI32: Fix GK2 broken messages 2019-12-28 14:47:49 -08:00
sluicebox
2691df04a7 SCI32: Update GK2 workaround for Italian version 2019-12-28 13:37:51 -08:00
sluicebox
cdf9954eb5 SCI32: Add HOYLE5 kFileIOReadString workaround 2019-10-31 04:30:09 -07:00
sluicebox
8dcdc63af1 SCI: Add LSL6 Mac Floppy kGetCWD workaround
The game now starts
2019-10-21 11:13:24 -07:00
sluicebox
2ee46abfa8 SCI32: Fix GK1 icon bar workaround
Fixes an uninitialized parameter workaround, trac #11215

This caused the icon bar to error when in "icon up" mode
2019-10-20 19:47:21 -07:00