Commit Graph
31 Commits
Author SHA1 Message Date
sluicebox 97b93c9f5f SCI: Remove dead code from findGameObject()
This code attempted to skip calling the function that finds script 0's
export block, but this never happened because it tests the wrong offset.
Even if it tested the right offset, it would have just been duplicating
what the function does.
2023-01-13 18:13:02 -08:00
sluicebox 4d6c2f474e SCI: Fix LB2 CD museum actors facing wrong direction 2022-12-02 16:11:32 -08:00
sluicebox 2d73220c13 SCI: Add media type to resource patch definitions 2022-12-02 16:11:32 -08:00
Eugene Sandulenko fb7095f5a4 COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
sluicebox 1efdb1cb6c SCI: Add support for Macintosh fonts
High-resolution native Macintosh fonts are now supported in the
following games when the game's executable is present:

- Castle of Dr. Brain
- Freddy Pharkas
- King's Quest 6
- Leisure Suit Larry 1
- Leisure Suit Larry 5
- Space Quest 1

And in these games when classicmacfonts.dat is present:

- Leisure Suit Larry 6 (floppy)
- Quest for Glory 1
2022-11-06 23:05:20 -08:00
athrxx f96819149f SCI: (SCI1+) - improve channel sound flag handling
This cleans up some things I noticed when I implemented the mute flag handling. It removes the hack that manually forces flag 2 on all channels with number 9, regardless of the device.
I presume the hack was done for the earliest SCI 1 games, due to improper handling of flag 1.
2022-06-19 20:46:37 +03:00
D G Turner 78db82f6e1 SCI: Fix Undefined Macro Compiler Warnings
These warnings are emitted by GCC if -Wundef is passed.
2022-03-15 10:17:12 +00:00
sluicebox 544ccafa72 SCI: Detect SCI0 sounds with missing digital samples
Fixes access violation when playing sound 35 in early versions of SQ3.
This sound has the digital sample flag set but it doesn't contain any
digital sample data. Bug #13206
2022-01-09 14:29:32 -05:00
sluicebox 4034d43cb4 SCI: Remove unnecessary TODO 2022-01-09 14:15:17 -05:00
D G Turner 0a34c124e7 SCI: Correct Resource Patcher for New Resource Patches
This should properly fix bug #13192 (SCI: Police Quest 4 - Random Crashes)

The view.10988 resource is a new resource as per the patch table. These
type of new resource will have a nullptr for the source when being patched.

This meant that the final memcpy to copy the remaining source would be
called with a nullptr in these cases. To avoid this, have added a nullptr
check on the source to this which should avoid this in future.

This only affected PQ4 as this was the only resource patch which created
a new resource.
2022-01-03 20:26:59 +00:00
D G Turner 1ec6adb304 SCI: Abort Resource Patching if Resource Data Loading has Failed
This may fix bug #13192 (SCI: Police Quest 4 - Random Crashes), but
is good practice anyway.
2022-01-02 17:08:39 +00: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 7934070bf5 SCI: Avoid global constructor in resource patcher 2021-08-23 21:10:32 -05:00
sluicebox af7d05999e SCI: Add SQ1 option to enable bearded musicians
Adds a game option to enable the original graphics that Sierra
disabled for legal reasons but still included.

Trac #12773
2021-08-09 16:40:38 -05:00
sluicebox e1c2b7da9b SCI: ResourceManager::testResource const correctness 2021-08-03 23:38:08 -05:00
Eugene Sandulenko ca92641345 Revert "SCI: Fix Symbian compilation."
This reverts commit ee6c7153cb.

This is not portable solution and produces tons of warnings
because the named va-args are GCC extension
2021-06-27 14:20:16 +02:00
Fiodar Stryzhniou ee6c7153cb SCI: Fix Symbian compilation.
Before build symbian build system process every cource file with prehistoric preprocessor.
I was unable to replace it with a modern version from gcc, since there are special specific commands. There is no description of the commands.
2021-06-27 13:00:13 +02:00
sluicebox b181967e10 SCI: Remove unused variable 2021-06-14 14:29:15 -05:00
sluicebox 4e8db68d4a SCI: Remove asserting "new" allocation results 2021-05-23 16:55:35 -06:00
sluicebox 0959489b49 SCI: Allow sounds with empty channels
Occurs in fan games such as SQ4 Update
2021-05-21 02:30:15 -06:00
sluicebox 718d79c05b SCI32: Add support for LSL7 Polish InstallShield files
Fixes bug #10066
2021-05-16 21:13:33 -06:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Filippos Karapetis e44615eba8 SCI: Add checking for g_sci inside ResourceManager methods
Since the ResourceManager is also used by the fallback detector, where
the engine is not initialized, all places where g_sci is used need to
be checked
2021-04-23 15:39:17 +03:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
sluicebox 9982c761a2 SCI: Update all old bug tracker ticket numbers 2021-02-25 01:18:52 -08:00
Filippos Karapetis e04c4b06a0 SCI: Handle cases where ressci.001 exists, together with resource.aud
In this case, the multi-disc audio handling code should not run.
Fixes a spurious warning in Lighthouse
2021-02-14 02:42:01 +02:00
Henrik "Henke37" Andersson 06cc82d493 SCI: Use getValOrDefault and tryGetVal 2021-02-12 00:41:23 +01:00
Filippos Karapetis 2c4b4c6cd5 SCI: Add missing class member initializers 2021-02-08 03:11:46 +02:00
Vladimir Serbinenko 3e7abf974d SCI: Patch invalid picture in Russian translation of Torin's passage 2021-01-02 11:41:37 +02:00
Filippos Karapetis bd7e708fc3 SCI: Move resource related functionality into a separate folder 2020-11-29 14:34:55 +02:00