149047 Commits

Author SHA1 Message Date
Scott Percival
294f8608a1 DIRECTOR: Fix the commandKey behaviour for Windows
According to the Lingo manual, "the commandKey" checks the status of the
Ctrl key when running on Windows.

Fixes opening the save and exit screens in Cosmology of Kyoto for
Windows.
2024-01-30 23:30:11 +01:00
Scott Percival
03aa341d0b DIRECTOR: Add patcher for individual script handlers
This gives the ability to replace function handlers in a compiled Lingo
script with a replacement from the quirks table. The replacement can be
written in Lingo; no need to worry about injecting bytecode.

As an example, here's a replacement for Cosmology of Kyoto's text input
handler. The original was notorious for requiring an exact match against a
word list containing typos, along with extra spaces and punctuation. The
new one is more forgiving, and always supports the answers "yes" and
"no".
2024-01-30 23:30:11 +01:00
Kaloyan Chehlarski
f3fee34f42 NANCY: Indent Autotext when wrapping
Replicating a bug in the original engine, where a value
from TBOX is used in all rendering, resulting in all wrapped
textlines appearing slightly indented inwards.
2024-01-30 23:13:12 +01:00
Kaloyan Chehlarski
9a549a88b2 NANCY: Implement Autotext images
Added support for images inside Autotext. Used extensively
in nancy7.
2024-01-30 23:13:12 +01:00
Kaloyan Chehlarski
b43b66dcc6 NANCY: Change the font height calculation in nancy6
This ensures the text can be (nearly) pixel-perfect.
2024-01-30 23:13:12 +01:00
Kaloyan Chehlarski
a6e9cd3424 NANCY: Fix resource leak when shutting engine down
ActionRecords weren't being deleted, which resulted in
memory leaks and files being kept open.
2024-01-30 23:13:12 +01:00
sluicebox
89723ae889 AGI: Move SQ2 Apple IIgs unknown opcode handling 2024-01-30 13:22:44 -08:00
sluicebox
a8145c5930 AGI: Cleanup op_cmd.cpp 2024-01-30 13:22:44 -08:00
sluicebox
32fa3679ea SCI: Reduce g_system use 2024-01-30 13:22:44 -08:00
Josu Igoa
fec22f022a ASYLUM: Add basque language fan translation 2024-01-30 11:49:53 +03:00
Josu Igoa
74763d28dd COMMON: Add basque language 2024-01-30 11:49:53 +03:00
BLooperZ
c815310905 HYPNO: Add Hebrew detection entry for CD structure 2024-01-30 07:49:50 +01:00
Vladimir Serbinenko
0d2f87768e MIYOOMINI: Enable neon and freetype2 in documented compilation script 2024-01-30 05:01:36 +02:00
elasota
fab95bdea1 VCRUISE: Fix music mute not persisting through save states 2024-01-29 20:16:40 -05:00
elasota
f761228f3e VCRUISE: Fix crash when executing music volume ramp while music is muted 2024-01-29 20:16:40 -05:00
elasota
020b30abde VCRUISE: Fix inventory not rendering after cutscene. 2024-01-29 20:16:40 -05:00
athrxx
cc49587679 SCUMM: more coverity fixes 2024-01-30 00:35:49 +01:00
athrxx
0baa6b593a SCUMM: coverity fixes 2024-01-30 00:35:45 +01:00
athrxx
bf04727a30 KYRA: coverity fixes 2024-01-30 00:35:39 +01:00
Torbjörn Andersson
a1c8db3201 JANITORIAL: Clean up some whitespace and double semicolons 2024-01-29 19:32:00 +01:00
athrxx
0f1902c93f SCUMM: coverity fixes and cleanup 2024-01-29 18:56:55 +01:00
Eugene Sandulenko
fd91ac61c2
SCUMM: Rename global variables in accordance with our naming conventions 2024-01-29 12:59:33 +01:00
Eugene Sandulenko
6ebd112a40
SCUMM: Remove superfluous 'extern' keyword 2024-01-29 12:58:20 +01:00
Eugene Sandulenko
3dfa5f805a
SCUMM: Added missing override keywords 2024-01-29 12:58:02 +01:00
Paul Gilbert
ec5ed17f50 M4: Fix hang talking to Harry the barber 2024-01-28 20:14:59 -08:00
Matthew Jimenez
6b2bfe3b07 ULTIMA8: Allow attack in current direction during movement 2024-01-28 18:05:54 -06:00
Matthew Jimenez
eb7cd9675c ULTIMA8: Allow climbing during directional movement. 2024-01-28 18:05:54 -06:00
Miro Kropacek
276103b0aa BACKENDS: ATARI: Fix a crash
_offsettedSurf must have the original screen dimensions, similar as done in
AtariGraphicsManager::Screen::reset().

Strangely, this bug was reproducible only in MagiC and not in FreeMiNT+MP.
2024-01-28 21:59:13 +01:00
Miro Kropacek
e1bda48e05 BACKENDS: ATARI: Change version to 2.9.0 2024-01-28 21:59:13 +01:00
Miro Kropacek
3e85aa3f4b BACKENDS: ATARI: Provide dlmalloc locally
It's much cleaner and easier to use than to depend on an unofficial mintlib fork...

Plus we are going to use its MSPACES feature anyway.
2024-01-28 21:59:13 +01:00
Matthew Jimenez
cec5900287 ULTIMA8: Show last save page when opening save and load gump 2024-01-28 14:13:35 -06:00
Matthew Jimenez
1349b0267e ULTIMA8: Rework text speed calculations. 2024-01-28 12:47:43 -06:00
sluicebox
96fa848264 AGI: Handle compressed V3 volumes in V2 games (CoCo3)
CoCo3 games use V3 volumes, and most use V3 compression, even though
they are V2 games with V2 directory files. Only KQ3 uses V2 volumes.

LSL1 CoCo3 now starts, along with the many CoCo3 fan ports.

Big thanks to @MusicallyInspired,  @EpicPotatoFiend, and the
SQHistorian discord for teaching me Tandy!
2024-01-28 10:39:18 -08:00
sluicebox
76c894acdc AGI: Document CoCo3 games in detection table 2024-01-28 10:37:00 -08:00
AndywinXp
ee5f9d0c61 SCUMM: Whitespace 2024-01-28 17:49:02 +01:00
athrxx
514abb7f90 SCUMM: remove some leftover garbage code 2024-01-28 17:18:17 +01:00
athrxx
bb75c87df4 SCUMM: (INDY3/MAC) - add dedicated sound player
(no support for low quality music yet)
2024-01-28 16:59:26 +01:00
athrxx
008c6c93c4 SCUMM: minor cleanup 2024-01-28 16:57:59 +01:00
athrxx
938b703ba5 SCUMM: move VAR_SOUNDCARD reset to extra function
(also update it after loading a savegame)
2024-01-28 16:57:59 +01:00
Walter Agazzi
5cf3dedc8c AGS: Update mac blackwell1/shardlight + new games 2024-01-28 16:18:00 +01:00
antoniou79
26bef51149 BLADERUNNER: Better drawing of zbuff via debugger
Avoids recycling colors which makes it more easy to understand, with the side-effect of not being very colorful
2024-01-28 15:28:04 +02:00
Torbjörn Andersson
13996ea3d1 SURFACESDL: Remove redundant _mouseOrigSurface check
It's already checked a few lines above.
2024-01-28 14:07:33 +01:00
Walter Agazzi
604fe0d4c6 AGS: Update some commercial entries
blackwell1/shardlight win/lin
goblins5 steam / grandma badass
2024-01-28 02:56:36 +01:00
Kaloyan Chehlarski
9f63b7c572 NANCY: Fix Overlay in nancy7 scene 3600
The scene in question is yet another edge case, since it
draws more than one rectangle over a single viewport frame.
2024-01-28 02:07:46 +01:00
Kaloyan Chehlarski
be67cf827b GRAPHICS: Prevent segfault in ManagedSurface
The create() overload of ManagedSurface that creates a
new, owned surface, previously assumed that the
_innerSurface was owned before the call was made. Thus,
when switching between sub-surface and owning surface
modes, a segfault would occur when attempting to free
the pixel data of the inner surface, which is not actually
owned by the ManagedSurface. This commit makes sure
that when free() is called, the inner surface no longer
has an active pointer to its old pixel data.
2024-01-28 02:06:05 +01:00
Kaloyan Chehlarski
13dde71233 NANCY: Completely disable nancy7 clock
Fixed the CLOK chunk reading, so the parameters that
indicate whether the clock is the day clock (nancy5), or
completely disabled (nancy7) now get read correctly.
2024-01-27 23:50:10 +01:00
Matthew Jimenez
856b4c5192 ULTIMA8: Alter default gamepad bindings based on play testing 2024-01-27 09:49:08 -06:00
Matthew Jimenez
cd4a24a53f UTLIMA8: Allow double click on entries in save gump 2024-01-27 08:23:26 -06:00
Matthew Jimenez
65150e3668 ULTIMA8: Close menu gump on double click.
This differs from original game, but is more consistent with other gumps and provides another close option when using a controller.
2024-01-27 08:23:25 -06:00
Matthew Jimenez
33d24390ef ULTIMA8: Handle double click on most gump buttons.
It is preferrable to handle both click and double events rather than only the up event to avoid unintended clicks after performing intended action.
2024-01-27 08:23:24 -06:00