Commit Graph
7317 Commits
Author SHA1 Message Date
Willem Jan Palenstijn 8bac8836b1 SCI: Fix up readString writing into too small buffer
This fixes QfG4 character import, which specifies a size of 52 for a
buffer of size 40.
2017-02-27 16:02:20 +01:00
Willem Jan Palenstijn 1b1fae6494 SCI: Clean up unnecessary casts 2017-02-26 14:23:36 +01:00
Bastien Bouclet c81a61eefe SIC32: Add RAMA French checksums 2017-02-26 07:07:50 +01:00
Bastien Bouclet e9d87117ba SCI32: Add Phantasmagoria 2 French checksums 2017-02-26 07:07:30 +01:00
Bastien Bouclet d991986944 SCI32: Add Lighthouse French checksums 2017-02-26 07:06:53 +01:00
Martin Kiewitz 26b6d450df SCI: Clean up kRandom + allow 0 parameters via signatures
Also added in depth comments about the currently known variations
Returning the RNG seed is now implemented (although it seems no
games actually use this functionality, it seems to be just script
bugs).
Also remove Torin kRandom workarounds.
2017-02-26 00:24:57 +01:00
Willem Jan Palenstijn cdfe5a3107 SCI: Remove check that is never triggered
Since blockSize is asserted to be positive, buf can never be equal to _buf.
2017-02-18 15:20:57 +01:00
Willem Jan Palenstijn 905feaa8c2 SCI: Fix unaligned read 2017-02-18 15:07:02 +01:00
Willem Jan Palenstijn 2f4f130918 SCI: Fix warnings 2017-02-07 21:45:17 +01:00
Colin Snover 10d97ce379 SCI: Fix more unsafe C-string usage 2017-02-05 12:38:21 -06:00
Colin Snover b1c3332fdd SCI: Use strnlen instead of strlen to avoid buffer overflows 2017-02-05 10:24:02 -06:00
Tarek Soliman 3dc565df26 SCI: Add more comments to SQ4-floppy workaround
I did a full-score playthrough of the game with a warning() on
the workaround condition as m_kiewitz suggested.
The following room numbers were logged:
* room#1: intro logo
* room#21: time rip (intro and ending)
* room#531: time pod time travel
* room#290: astro chicken star background
* room#376: right after astro chicken game over (called only once)
2017-01-31 20:55:34 -06:00
Tarek Soliman 6ef42cbe92 SCI: Expand workaround for script bug #3537232
More details in PR#889
2017-01-31 17:20:45 -06:00
Tarek Soliman 25614c60c8 SCI: Add more version info to SQ4 detection entry 2017-01-17 16:09:31 -06:00
Colin Snover 88981b8db6 SCI32: Script patch priority drawing bug in MGDX
This fixes the horse at the fountain drawing on top of the
fountain instead of behind it.
2017-01-16 12:54:39 -06:00
Colin Snover e695100708 SCI32: Add workarounds for MGDX 2017-01-16 12:16:14 -06:00
Colin Snover 600a9127de SCI32: Add pic cel to CelInfo32 debugging output 2017-01-16 12:16:14 -06:00
Colin Snover d9de55b2a9 SCI32: Fix handling of negative z-indexes
Fixes the ego disappearing behind the castle doors in MGDX.
2017-01-16 12:16:14 -06:00
Colin Snover f66c033d52 SCI32: Add workaround for Hoyle5 2017-01-16 12:16:13 -06:00
Colin Snover 8859c3ccae SCI32: Disable compression on Hoyle5 options files
Compression overhead takes up more space than uncompressed files,
plus the uncompressed files it creates are marginally quicker and
easier to debug with external tools.
2017-01-16 12:16:13 -06:00
Colin Snover c476341508 SCI32: Add workarounds for KQ7 2.00b 2017-01-16 12:16:13 -06:00
Colin Snover efa6b74cce SCI32: Clarify comment about empty code path in cursor code 2017-01-16 12:16:13 -06:00
Colin Snover d495267829 SCI32: Fix loading save games in KQ7 1.51 2017-01-16 12:16:12 -06:00
Colin Snover 0e77471467 SCI: Remove unused SciEngine::speechAndSubtitlesEnabled method 2017-01-16 12:16:12 -06:00
Colin Snover 0744dc4109 SCI32: Fix spinloop in Hoyle5
Hoyle5 will spin on kGetTime between 15 and 300 ticks in multiple
game scripts in order to delay execution (for example, after
choosing opponents and clicking "okay"). This causes ScummVM to
be unresponsive and wastes CPU time.

This commit patches the spin subroutines to instead call a kernel
function (kWait) that waits without a spin loop. This kernel
function was removed in SCI2, and has been added back in ScummVM
specifically for Hoyle5, so this patch will not work with the
original interpreter.
2017-01-16 12:16:12 -06:00
D G Turner 657e5414fe SCI: Fix Possible Uninitialized Variable Usages. 2017-01-16 07:22:32 +00:00
D G Turner d2dd942ad7 SCI: Fix Warnings about Copy Constructor Failing to Call Base Class. 2017-01-14 08:26:29 +00:00
Colin Snover d34e5266ed SCI32: Fix bad scroll delta in GK2 inventory
Fixes Trac#9648.
2017-01-12 15:04:45 -06:00
Colin Snover ba50f88a3c SCI32: Fix crash trying to clip invalid rects generated by transitions
In PQ4CD, when leaving the shooting range through the front door,
some transition screen items will be generated that have invalid
dimensions. SSCI simply clips these rectangles to zero.
2017-01-12 13:16:53 -06:00
Colin Snover 92f185c83c SCI32: Add Hoyle5 to the list of game versions 2017-01-12 13:14:25 -06:00
Colin Snover dd13fdfe17 SCI32: "Fix" renderer for PQ4CD
PQ4CD and several other games contain a hack in two renderer
methods to avoid rendering invalid screen items with zero or
negative-dimension target rects. This prevents PQ4CD from
crashing during the fifth phase of target practice.
2017-01-12 13:14:10 -06:00
Colin Snover 54e94c572a SCI32: Add workarounds, transitions, fixes for PQ4CD 2017-01-12 13:14:03 -06:00
Colin Snover 320d6c8255 SCI32: Fix uninitialised read of cursor background at start of game 2017-01-11 12:02:12 -06:00
Colin Snover d951026578 SCI32: Add workarounds for PQ:SWAT 2017-01-11 11:13:45 -06:00
Colin Snover 63ad0a6715 SCI32: Fix null references in Robot decoder
Failing to reduce the size of the ScreenItem arrays causes other
parts of the decoder (like RobotDecoder::getFrameSize) to try
reading ScreenItems that were already destroyed and nulled out in
the list. (In SSCI, the screen item count was held in a separate
property instead of being part of the screen item list.)
2017-01-11 11:13:44 -06:00
Colin Snover e00c773d95 SCI32: Remove backslashes from PQ:SWAT extra save game files
The original interpreter created subdirectories for each in-game
profile, but copying this behaviour would add a lot of
superfluous complexity to the save game system in ScummVM, and
may not be portable to all supported platforms. Instead, when the
game tries to save its files to a subdirectory, the backslash in
the file name is replaced with an underscore so it can be created
successfully on filesystems where backslash is an illegal file
name character.

This has a side-effect of causing all save games to be displayed
under all profiles, instead of just the ones "belonging" to a
particular profile, but this seems like a reasonable trade-off
given that there is no reason to play this game with more than one
profile.
2017-01-11 11:13:44 -06:00
Colin Snover 4eecd48c64 SCI32: Remove unnecessary call to unalloc
When the Resource is deleted, it will deallocate the memory, so
it is not necessary to do that manually.
2017-01-11 11:01:38 -06:00
Colin Snover 7156a82a64 SCI32: Improve mouse responsiveness
This is most noticeable at the beginning of the game during
benchmarking, where the benchmarking loop used to cause the mouse
to get stuck for the duration of the benchmark.
2017-01-11 11:01:38 -06:00
Filippos Karapetis 09d06855c5 SCI32: Add a workaround for the demo version of LSL7 2017-01-11 00:37:43 +02:00
D G Turner 26452df855 SCI: Fix Unused Variable Compiler Warning when SCI32 is not enabled.
The bytesWritten variable is not used if SCI32 is not enabled. Fixed by
adding this and success flag to the debug console print.
2017-01-10 06:14:03 +00:00
Colin Snover f1ca9ccc64 SCI32: Fix kSetLanguage 2017-01-09 19:38:59 -06:00
Colin Snover e18e6399ac SCI32: Fix bad rendering of Sierra logo in MGDX 2017-01-09 19:34:54 -06:00
Colin Snover b895b4b075 SCI32: Disable compression for Phantasmagoria save files 2017-01-09 19:34:54 -06:00
Colin Snover 126378fa26 SCI32: Fix bad coordinates in PQ:SWAT demo 2017-01-09 19:34:54 -06:00
Colin Snover c48c24d1d3 SCI32: Fix Torin demo crash 2017-01-09 19:34:54 -06:00
Colin Snover e729a31edc SCI32: Fix SQ6 demo crash 2017-01-09 19:34:54 -06:00
Colin Snover 4a930d0368 SCI32: Fix GUIOs for all SCI2-2.1late games 2017-01-09 19:34:54 -06:00
Colin Snover c01b5fe619 SCI32: Mark non-interactive Lighthouse demo as non-interactive 2017-01-09 19:34:54 -06:00
Colin Snover c8b05f03ad SCI32: Fix invalid bitmap deletion in AVIPlayer 2017-01-09 19:34:54 -06:00
Colin Snover b818e54027 SCI32: Fix crashes and bad cel positioning in GK2 demo 2017-01-09 19:34:54 -06:00