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
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 4742b4d728 )
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
Willem Jan Palenstijn
71566a4307
SCI: Fix style
2011-11-11 00:16:57 +01:00
Willem Jan Palenstijn
8c57e4bf43
SCI: Fix const cast
2011-11-11 00:07:27 +01:00
Filippos Karapetis
5969c6bd2e
SCI: Updated Script::getObjectMap()
...
It now returns a reference to the object list instead of copying it
2011-11-05 13:08:42 +02:00
Filippos Karapetis
58190c36b4
SCI: Made the object map hashmap of the Script class private
2011-11-05 10:07:03 +02:00
Filippos Karapetis
267c6f1756
SCI: Made more fields of the Script class private. Some cleanup.
2011-11-05 03:00:42 +02:00
Filippos Karapetis
b3134650df
SCI: Fixed a workaround
2011-11-03 22:44:11 +02:00
Eugene Sandulenko
6d2e7228b5
SCI: Add fixme comment to a weird comparison
2011-11-03 01:17:46 +00:00
Eugene Sandulenko
7e298f13a1
SCI: Fix copy/paste error
2011-11-03 01:06:56 +00:00
athrxx
731382ad51
SCI: add Japanese detection entry for KQ5 FM-Towns and fix audio language handling
2011-11-01 20:29:53 +01:00
Filippos Karapetis
acebd6d0be
SCI: Removed the hack for the creation of LARRY3.DRV, used in LSL3
...
This is no longer necessary, as our file I/O code handles this case
correctly now. Also, updated the description of file I/O on top.
2011-10-30 21:42:32 +02:00
Lars Skovlund
40e22d9e33
SCI32: kString: Move variable declaration to prevent problems
...
with object lifetimes.
2011-10-30 13:56:37 +01:00
Filippos Karapetis
4f69967773
SCI: Added a new debug flag, "DebugMode" for SCI32 games
...
This is used to enable the embedded debugger in several SCI32 games
(PQ4, QFG4, GK1, GK2, KQ7, SQ6 and LSL7)
2011-10-29 18:32:52 +03:00
Filippos Karapetis
1cc30572e6
SCI: Remove unneeded casts (thanks to wjp for pointing that out)
2011-10-28 22:54:02 +03:00
Filippos Karapetis
4ac2940bc5
SCI: Added skeleton code for kEditText (still not working)
2011-10-28 22:20:33 +03:00
Filippos Karapetis
f61ea4c9cf
SCI: Fixed text background color and text transparency for SCI32 games
2011-10-28 22:20:31 +03:00
Filippos Karapetis
ac559b0212
SCI: Renamed GfxControls to GfxControls16
2011-10-26 01:54:27 +03:00
athrxx
da96afe167
SCI: fix thread lockup issue when loading savegames using a sound driver which depends on the mixer thread for timer calls.
...
The issues seems to be known. See comments (not by me) in SciMusic::clearPlayList().
For the same reason mentioned there the mutex may also not be locked before calling clearPlayList().
2011-10-22 19:53:24 +02:00
Filippos Karapetis
84a185ede2
SCI: Added a detection for the second kSetShowStyle variant
2011-10-19 23:52:53 +03:00
Filippos Karapetis
5ba50c69b1
SCI: Changed the kUnload workaround for the LB2 demo to apply to all scenes
2011-10-19 23:52:52 +03:00
Filippos Karapetis
513d0be106
SCI: Merged all the code to get/set the NS rect
2011-10-19 20:29:05 +03:00
Filippos Karapetis
2b9dc69ac0
SCI: Updated comments in kShowStyle() and kCelInfo()
2011-10-19 20:29:03 +03:00
Filippos Karapetis
85af217a5b
SCI: Implemented kObjectIntersect()
2011-10-19 20:29:02 +03:00
Filippos Karapetis
289e4e6cfb
SCI: Duck videos are 16bpp, so we need to change the active pixel format
2011-10-18 03:24:46 +03:00
Filippos Karapetis
7708a4ddbb
SCI: Added some hacks related to new functionality in Phantasmagoria 2
...
The game will now start (but won't do anything exciting - it'll display
its main menu, which doesn't work yet)
2011-10-18 03:10:19 +03:00
Filippos Karapetis
021b09d35c
SCI: Initial implementation of kPlayDuck for Phantasmagoria 2
2011-10-18 02:38:26 +03:00
Filippos Karapetis
701e318360
SCI: Set the correct number of kernel functions for SCI3
2011-10-18 02:36:59 +03:00
Filippos Karapetis
ffe7073037
SCI: Script 64036 in Torin's passage contains an invalid export
2011-10-16 13:01:13 +03:00
Filippos Karapetis
8609e22e40
SCI: Silenced warnings
2011-10-14 20:30:22 +03:00
Filippos Karapetis
b04a069782
SCI: More work on kBitmap (still WIP)
2011-10-14 14:07:01 +03:00
Filippos Karapetis
7d6d8c2475
SCI: Extended the detection of certain selectors to work in SCI2
...
This is needed for some demos that do not supply a selector vocabulary
(i.e. vocab 997)
2011-10-13 14:03:58 +03:00