Lars Skovlund
403b646c13
SCI32: Case-insensitive configuration getters
2012-05-30 18:43:39 +02:00
Filippos Karapetis
e77fc29101
SCI: Add a TODO in kFileIOReadRaw
2012-05-26 19:06:54 +03:00
Filippos Karapetis
f15582b190
SCI: Map another missing kFileIO call
...
This is used to change directories in the save/load dialog (unused by us)
2012-05-26 16:42:38 +03:00
Filippos Karapetis
5af1ccbac6
SCI: Implement kGetConfig and kGetSierraProfileInt
...
This fixes the sluggish game speed in Phantasmagoria (DOS/Windows)
2012-05-26 16:41:11 +03:00
Filippos Karapetis
79926b305c
SCI: Bugfix for kFileIOReadRaw
...
Avoid overwriting the target buffer with junk when no data has been read
2012-05-26 16:23:03 +03:00
Filippos Karapetis
beef27fc10
SCI: Map the rarely used VibrateMouse kernel function to be an empty call
...
This is a function used to implement vibration in the floppy version of
QFG4 for exotic force feedback mice, such as the Logitech Cyberman
2012-05-24 01:44:25 +03:00
Filippos Karapetis
5a8a28bb22
SCI: Add a workaround for a hack used in the NRS script patches for QFG3
...
The patched script 33 in the NRS patch attempts to perform kAbs() on an
object. Return a dummy value instead. Fixes bugs #3528416 and #3528542
2012-05-22 10:50:39 +03:00
Matthew Hoops
92b907e856
SCI: Silence unused variable warnings
2012-05-21 00:07:28 -04:00
Filippos Karapetis
b5eac1b35b
SCI: Fix case of the SciOpcodes enum
2012-05-20 21:35:27 +03:00
Filippos Karapetis
6fb9511c93
SCI: Remove the hackish (and wrong) SCI32 fade code
2012-05-20 20:26:45 +03:00
Filippos Karapetis
f8c24b5d88
SCI: Split the SCI32 graphics kernel functions in a separate file
2012-05-20 20:16:15 +03:00
Filippos Karapetis
fceeca2666
SCI: Change sci_opcodes to CamelCase
2012-05-20 20:16:13 +03:00
Filippos Karapetis
6f9e49faeb
SCI: Add another workaround for the map scene in TMM
...
Thanks to TMM for details on reproducing this
2012-05-20 20:16:11 +03:00
Filippos Karapetis
c3f0a426fc
SCI: kMakeSaveFileName is actually using virtual savegame IDs
2012-05-14 11:16:11 +03:00
Filippos Karapetis
6b38731d39
SCI: Implement savegame deletion functionality in SCI32
...
This is based on two kernel functions, kMakeSaveCatName and
kMakeSaveFileName
2012-05-14 11:04:58 +03:00
Filippos Karapetis
398d0ffcef
SCI: Check for object visibility, if an object defines it
...
Fixes the inventory in GK1
2012-05-14 02:30:15 +03:00
Filippos Karapetis
e41e412c9e
SCI: Fix for bug #3522046 "Detection of SQ4CD as Windows breaks Music"
...
Fall back to the DOS soundtracks in Windows CD versions if the user picks
a non-General MIDI music device, as the Windows tracks only contain MIDI
music
2012-04-29 20:45:16 +03:00
Filippos Karapetis
793dcda650
SCI: Bugfix for the GetAngle workarounds
...
Return a fake value instead of leaving random values in the accumulator
2012-04-04 07:41:44 +03:00
D G Turner
639c54a306
SCI: Add workaround for SQ1SCI to fix engine abort in bug #3513765 .
...
This occurs while Roger is trying to move around the Pilot Droid in
Ulence Flats.
2012-04-01 01:50:08 +01:00
Filippos Karapetis
95fb73bcc5
SCI: Change the fix for the SQ1 PAvoider call to apply in all rooms again
...
This bad call can be made in all rooms in Ulence Flats, after getting the
Pilot Droid. Properly fixes script bug #3513207
2012-04-01 01:32:03 +03:00
Filippos Karapetis
6a49d3eadd
ENGINES: Return all available custom GUI options if no target is specified
...
This is used to set default settings for all custom game options when an
engine starts
2012-03-31 13:55:03 +03:00
Filippos Karapetis
21e8f2f441
SCI: Fix workaround for bug #3513207
...
The associated call contains too few parameters, thus it shouldn't be made
at all
2012-03-31 05:53:29 +03:00
D G Turner
5bbfd008b6
SCI: Minor formatting fix to workarounds table.
2012-03-31 02:25:20 +01:00
D G Turner
834e9184e5
SCI: Add workaround for SQ1SCI to fix engine abort in bug #3513207 .
...
This occurs while Roger is trying to move around the Pilot Droid in
various narrow cases.
2012-03-31 01:39:03 +01:00
Filippos Karapetis
536a7e407f
SCI: Hook up the digital SFX and CD audio options
...
The relevant code wasn't added in the newer commits - this was an
oversight from my part
2012-03-25 16:40:49 +03:00
Christoph Mallon
75efdd2d84
JANITORIAL: Replace (x ? false : true) by !(x).
2012-03-13 15:43:36 +01:00
Matthew Hoops
fe0c5c0e97
SCI: Fix KQ6 Mac movies with resource fork names
2012-03-08 08:04:54 -05:00
Willem Jan Palenstijn
9ffe3e11d9
Merge pull request #182 from fingolfin/forbid-ctype
...
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83
COMMON: Move isFoo functions to namespace Common, add doxygen comments
2012-02-20 16:18:27 +01:00
Tarek Soliman
a4798602d7
JANITORIAL: Fix missing whitespace in pointer cast
...
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'
This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Willem Jan Palenstijn
15bbe3bff1
SCI: Expand adjustGraphColor to work for older EGA games too
...
See bug #3486899 .
2012-02-12 13:32:22 +01:00
Tarek Soliman
edc5249772
JANITORIAL: Fix template definition whitespace
2012-02-10 21:17:27 -06:00
Johannes Schickel
fa401a2d3d
SCI: Remove unnecessary break after return statement.
2012-01-29 16:34:41 +01:00
Filippos Karapetis
5bb473df88
SCI: Update a workaround for the demo of QFG4 to make it work again
2012-01-16 19:19:09 +02:00
Willem Jan Palenstijn
c60394eb3f
SCI: Remove outdated comment
2012-01-16 16:07:48 +01:00
Filippos Karapetis
7560007ba9
SCI: Simplify kString(Dup) using the overloaded = operator
...
Thanks to wjp for his suggestion
2012-01-15 21:42:09 +02:00
Filippos Karapetis
c69ac88be2
SCI: Ignore an invalid export in a script in the demo of RAMA
2012-01-15 21:10:18 +02:00
Filippos Karapetis
cbe7527805
SCI: Use fromString() in kString(Dup) to simplify code
2012-01-15 21:05:10 +02:00
Filippos Karapetis
aff92ea4cd
SCI: Zero-terminate strings in SciString::fromString()
2012-01-15 21:02:02 +02:00
Filippos Karapetis
96aa86a60b
SCI: Remove wrong script-to-array copying code in kArray
2012-01-15 20:58:14 +02:00
Filippos Karapetis
34b297748c
SCI: Fix a nasty bug in kString(Dup)
...
The rawString variable is no longer pointing to invalidated data. This
fixes cases where strings are manipulated by game scripts, such as the
graveyard and rada drum puzzles in GK1
2012-01-15 20:11:30 +02:00
Willem Jan Palenstijn
56fb56936e
SCI: Clean up some memory management and loops
2012-01-15 18:25:00 +01:00
Filippos Karapetis
ce0061d9e0
SCI: Add a script patch to fix a script bug in GK1 floppy
...
This bug leads to a crash after Gabriel interrogates people, and is
caused by incorrect ordering in two checks, which was fixed in the CD
version
2012-01-14 21:02:44 +02:00
Filippos Karapetis
4594982ce3
SCI: Fix bug in fadeIn()/fadeOut()
...
This wasn't added in 4742b4d728ba772d47cc497681c9bfb0144475bc)
2012-01-14 00:21:55 +02:00
Filippos Karapetis
29d129747d
SCI: Some more work on kSetShowStyle. Silenced some chatty warnings in GK1
2012-01-13 22:55:10 +02:00
Filippos Karapetis
df0528e786
SCI: Blacklist more unused/debug SCI2.1 kernel functions
2012-01-13 22:55:09 +02:00
Willem Jan Palenstijn
0192d2f2de
SCI: Fix restarting SCI engine with different SCI version
2011-11-29 18:34:34 +01:00
Willem Jan Palenstijn
097b4e5c7a
SCI: Add RtL FIXME
2011-11-29 16:11:33 +01:00
Filippos Karapetis
381e92a576
SCI: Added handling of invalid jump offsets (e.g. QFG2, script 260)
2011-11-28 22:36:58 +02:00