6543 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
22796e559f SCI: Fix compilation when SCI32 is disabled
Thanks bSr43
2016-01-10 12:38:10 +01:00
Filippos Karapetis
28b91136cd SCI: Fix the math in applyFade(), and simplify setFade() 2016-01-08 17:16:09 +02:00
Filippos Karapetis
65f54c227f SCI: *Really* fix the logic in applyFade()
Thanks wjp
2016-01-08 15:58:10 +02:00
Filippos Karapetis
04f372f004 SCI: Fix the logic in applyFade()
Note that this is still unused, as it is normally called from
kSetShowStyle()
2016-01-08 15:55:24 +02:00
Filippos Karapetis
e4e7f1825d SCI: Renamed one more function name to conform to our guidelines 2016-01-08 15:43:59 +02:00
Filippos Karapetis
8c6b5168a1 SCI: Make GfxPalette32 conform to out formatting guidelines
We do not prepend underscores to private class functions
2016-01-08 15:40:05 +02:00
Filippos Karapetis
a65ff0e56e SCI: SCI32 palette cyclers are disjoint, so use a single palette copy 2016-01-08 15:35:19 +02:00
Filippos Karapetis
c6e083bcf4 SCI: Simplify the SCI32 palette cycling code 2016-01-08 15:19:04 +02:00
Filippos Karapetis
0434617018 SCI: Initialize kString properly for SCI2 games
SIG_UNTIL_SCI21MID did not account for SCI2 games. Fixes GK1 DOS
2016-01-08 11:37:13 +02:00
Filippos Karapetis
a119108835 SCI: Fix compilation 2016-01-08 11:09:29 +02:00
Filippos Karapetis
7379e531c7 Merge pull request #644 from csnover/sci32-kPalCycle
SCI32: palette management (full kPalCycle, partial kSetPalStyleRange and kPalFade)
2016-01-08 10:58:03 +02:00
Colin Snover
275db1f7f2 SCI: Remove unused member property _palCycleToColor 2016-01-07 16:35:09 -06:00
Colin Snover
8a1d48fc03 SCI32: Add kFrameOut stub code 2016-01-07 16:35:09 -06:00
Colin Snover
70d89b3e39 SCI32: Add kSetPalStyleRange stub code 2016-01-07 16:35:09 -06:00
Colin Snover
aeee621e44 SCI32: Add initial support for palette cycling (kPalCycle) and fading (kPalFade)
Graphics palette code was rewritten between SCI1 and SCI2, so
SCI32 palette engine code has been moved to a separate GfxPalette32
class.
2016-01-07 16:35:09 -06:00
Martin Kiewitz
7b1df2174d SCI: fix compatibility issue in kFileIO
Allow 0xFFFF as invalid file handle again for kFileIO calls
Fan game "Dating Pool" opens a non-existant file at the start
and tries to read it, even though it shouldn't do the latter.
The sciAudio adjustments changed our behavior to error() out in
such a case. This commit changes it back to our old behavior to
only print out a warning.
2016-01-05 19:44:45 +01:00
Martin Kiewitz
0b5a09f836 SCI32: fix kString calling from within kArray
(didn't work since the introduction of kString signatures and the
kString split-up)
2016-01-04 14:58:02 +01:00
Martin Kiewitz
453afd7bbc SCI: kGetEvent modifiers bug was fixed in SCI1
- SCI1 EGA QfG2 keyboard driver resets AH

In the original commit I forgot to mention:
- thanks to lskovlun for figuring out that bit 9 is checked/set
- thanks to wjp for checking SCI32
2016-01-03 18:32:25 +01:00
Martin Kiewitz
f9459656f5 SCI: implement kGetEvent modifiers DOS bug
Will fix darts minigame in the fan game "Betrayed Alliance"
This bug in the original interpreter/keyboard driver seems to have
been fixed in SCI32.
2016-01-03 18:09:06 +01:00
Martin Kiewitz
4a63352462 SCI: sciAudio support for .wav + .aiff files 2016-01-03 00:27:42 +01:00
Martin Kiewitz
30b554d694 SCI: sciSound: check compression type 2016-01-03 00:07:05 +01:00
Martin Kiewitz
4892bd8066 SCI: fix sciAudio not doing loops correctly 2016-01-02 22:43:27 +01:00
Martin Kiewitz
9d5ee9cba0 SCI: fix sciAudio support on some platforms
The old code expected sciAudio FOpen calls to fail, because they
contained a directory name. On AmigaOS those calls succeeded.
Because of that at least on AmigaOS, sciAudio support didn't
work at all.

We now detect sciAudio FOpen calls and return a proper virtual file
handle. This should fix it on all platforms.

Also moved the SCI32 virtual save file handle from 200 to 32100.
2016-01-02 21:50:35 +01:00
Ori Avtalion
85fa44c32d JANITORIAL: Remove #includes of list_intern.h 2016-01-02 15:32:38 +02:00
Martin Kiewitz
63b66b23aa SCI32: version detection - don't remove const
don't remove const during cast
2015-12-29 02:35:07 +01:00
Martin Kiewitz
0dd760724e SCI32: split up SCI2.1 into EARLY/MIDDLE/LATE
- Detection works via signatures (couldn't find a better way)
- new kString subcalls were introduced SCI2.1 LATE
- kString now has signatures and is split via subcall table
- kString fix, so that KQ7 doesn't crash, when starting a chapter
- Sci2StringFunctionType removed, because no longer needed
2015-12-29 01:44:11 +01:00
Lars Skovlund
54acbdccc6 SCI: Fix obsolete comment 2015-12-28 10:28:27 +01:00
Lars Skovlund
9a3084d320 SCI: Fix when more than 10 font codes are used 2015-12-28 05:50:26 +01:00
Johannes Schickel
d2d700e086 SCI: Remove superflous default value registration for extra GUI options. 2015-12-28 00:14:11 +01:00
Martin Kiewitz
b0587f6af8 SCI32: add code for torin+sq6 audio+subtitles mode
also add comments about other SCI32 games
set global 90 only for lsl6 sci1.1
2015-12-22 01:53:19 +01:00
Martin Kiewitz
d0d1d6e921 SCI32: add code for kq7 audio+subtitles mode
also enables it for gk1 and qfg4 (CD versions)
2015-12-21 23:25:58 +01:00
Martin Kiewitz
431d33b119 SCI: use diff. PC98 word wrap tables for SCI0/01/1
also added even more comments about details of word wrapping
SCI0 (PQ2) and SCI1 (Brain/KQ5/SQ4) got their own table now
2015-12-14 00:20:56 +01:00
Martin Kiewitz
1161e3e89d SCI: add difference for SCI1 PC-98 word-wrapping
fixes small issue in Castle of Dr. Brain PC-98 Japanese
room 120, when looking at the table
Also added a few comments to Japanese word wrapping code
2015-12-13 22:56:42 +01:00
Martin Kiewitz
f9085aca06 SCI: detection for Castle of Dr. Brain PC-9801 JP
also known as Dr. Brain Puzzle no Shiro
2015-12-13 19:19:40 +01:00
Martin Kiewitz
7e44493fe8 SCI: add another Torin's Passage version
German 1.0
2015-11-11 13:31:20 +01:00
Willem Jan Palenstijn
7f9a2c5c82 SCI: Remove non-ascii character 2015-10-16 16:05:30 +02:00
Martin Kiewitz
d43c593e2e SCI: implement frame skipping for all transitions
should hopefully fix transitions being too slow on some systems
2015-08-02 01:32:26 +02:00
Filippos Karapetis
3a29dfaebf SCI: Fix object init in SCI3 scripts which are larger than 64kb 2015-07-13 01:35:26 +03:00
Martin Kiewitz
5a29797735 SCI: add Japanese Lighthouse SCI3 detection entry 2015-07-10 15:02:20 +02:00
Filippos Karapetis
138ec332d2 SCI: Fix wording for commit fc14641 2015-07-10 14:25:35 +03:00
Filippos Karapetis
fc1464155a SCI: Enable the save game menu option when dying in PQ2 - bug #6875
This uses the same hack as the one used to reset the menus in Jones.
I've tested some more SCI games, and they don't disable menu entries
when loading a game. Hopefully, Jones and PQ2 are the only ones
2015-07-10 14:13:18 +03:00
Walter van Niftrik
56c0238f9b SCI: Delete OPL when init fails 2015-07-07 20:19:48 -04:00
Walter van Niftrik
82f585871b SCI: Check OPL init return code 2015-07-07 20:19:48 -04:00
Matthew Hoops
bed9da8b9d AUDIO: Remove all AudioStream access to OPL 2015-07-07 20:19:47 -04:00
Matthew Hoops
24add3c745 SCI: Use the built-in OPL timer 2015-07-07 20:19:43 -04:00
Matthew Hoops
2e8f9dcec9 AUDIO: Remove the sample rate configuration from the OPL code 2015-07-07 20:19:42 -04:00
Martin Kiewitz
8bfb268eb2 SCI: rename GAMEOPTION_EGA_UNDITHER name + desc
Original name + description were inaccurate. We don't actually
do undithering (besides the view undithering), but we instead
skip the EGA dithering code.
2015-06-15 17:37:33 +02:00
Matthew Hoops
b6fdc7be88 AUDIO: Make makeAIFFStream return a RewindableAudioStream
All callers requiring SeekableAudioStream have been adapted by using dynamic_cast
2015-06-06 17:20:41 -04:00
Matthew Hoops
c76e30d01c SCI: Only use makeAIFFStream instead of loading the sound twice 2015-06-04 19:47:23 -04:00
Martin Kiewitz
c64652bbb6 SCI: sq4cd: extend skateorama workaround bug #6853 2015-05-18 19:38:44 +02:00