Commit graph

116 commits

Author SHA1 Message Date
Filippos Karapetis
dd026268aa SCI: Fixed typo
svn-id: r55160
2011-01-08 10:34:04 +00:00
Filippos Karapetis
fc83afc5f2 SCI2.1: Added/documented some functionality used by Shivers 1
- Added kFileIO subop 17 (create save slot)
- Added information about a (probably debug) kernel function used in a puzzle, kCelInfo
- Added some information on two kSave subops
- Added 2 workarounds for uninitialized variables

svn-id: r55158
2011-01-08 10:23:27 +00:00
Filippos Karapetis
59d00fca17 SCI: Removed leftover end markers from the opcode formats array
svn-id: r55153
2011-01-07 19:31:19 +00:00
Filippos Karapetis
6b250f8c9b SCI2/2.1: Improvements to the find_callk debug function, and some kernel function updates
- Improved the find_callk function to properly find the end of script objects, by
monitoring jump calls
- Added three extra special calls to find_callk: find kernel function calls to dummy,
unused and unmapped kernel functions
- Updated several kernel function calls because of the above functionality
- The above functionality has also uncovered a VM bug in some SCI2/2.1 opcode - added 
a FIXME for it

svn-id: r55151
2011-01-07 18:25:38 +00:00
Filippos Karapetis
1796e7afdd SCI2.1: Kernel function changes (after looking through all of the SCI2.1 games)
- Replaced the stub kWinDLL (unused), as well as the not fully implemented kPrintDebug
functions with empty function calls
- Marked several unused or debug kernel functions as stub
- Added some games where the rest of the unimplemented SCI2.1 kernel functions are used

svn-id: r55138
2011-01-07 00:12:18 +00:00
Filippos Karapetis
364d37b302 SCI: some changes to the way reverb is handled
- "Invalid" SCI reverb values (127) are properly handled now
- SCI kDoSound(reverb) sets the global reverb (renamed it accordingly)
- kDoSound(reverb) can also return the current reverb if no parameter is sent

svn-id: r54457
2010-11-24 14:21:31 +00:00
Lars Skovlund
fbf5a453c7 SCI: Implement the GetConfig call for LSL7
svn-id: r54369
2010-11-19 12:46:36 +00:00
Filippos Karapetis
7dec2bd6a8 SCI: Some SCI3 changes
- Extended the SCI2.1 kernel function signatures for SCI3, as they share 
the same kernel table
- All the engine parts are now initialized in SCI3 games, apart from the VM

svn-id: r54178
2010-11-10 01:08:17 +00:00
Filippos Karapetis
c3fd3e2329 SCI: Updated the SCI2.1 kernel function table with the SCI3 changes/additions
svn-id: r54177
2010-11-10 00:36:43 +00:00
Lars Skovlund
acf581fe67 SCI: Temporarily disable the PrintDebug call, which is only partially
implemented and insufficient for Shivers/Full. It is also unnecessary
for normal play.

svn-id: r54158
2010-11-09 15:45:20 +00:00
Filippos Karapetis
e3dfadc6c1 SCI: Fix for bug #3100292 - "QFG2: signature mismatch at the WIT"
svn-id: r53993
2010-10-31 23:34:36 +00:00
Filippos Karapetis
509f79990d SCI: Updated kSetShowStyle signature for SCI2.1. SQ6 starts again
svn-id: r53919
2010-10-29 10:28:20 +00:00
Filippos Karapetis
bd14661fdf SCI: Silence runtime warnings when editing kernel_tables.h with VS2010
svn-id: r53743
2010-10-23 19:19:06 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Filippos Karapetis
2d1205f7a0 SCI: Changed some tabs to spaces
svn-id: r53648
2010-10-20 18:29:21 +00:00
Filippos Karapetis
ab362cfa53 SCI: Marked several unused SCI2/SCI2.1 kernel functions and updated comments about some others
svn-id: r53647
2010-10-20 18:10:36 +00:00
Filippos Karapetis
7706f90c71 SCI: Added comments for the unmapped SCI2/SCI2.1 kernel functions
svn-id: r53556
2010-10-17 22:56:11 +00:00
Johannes Schickel
04810a89f2 SCI: Use spaces for indentation for consistency.
I think the code uses this in this particular instance to have the comments on
top of the various tables aligned with the actualy entries, so I decided not
to make this conform to our guidelines, but rather to the rest of the style
used in this file.

svn-id: r52766
2010-09-17 16:04:02 +00:00
Filippos Karapetis
8bf6777163 SCI2: some very early work on kSetShowStyle
svn-id: r52764
2010-09-17 15:19:18 +00:00
Filippos Karapetis
6cf1a4d537 SCI: Some very early work on kRemapColors (just comments/observations for now)
svn-id: r52733
2010-09-15 15:21:59 +00:00
Filippos Karapetis
c74c206f05 SCI2: adding a stub for the kPurge memory function
kPurge is specific to the SSCI memory manager. We have our own memory manager and
garbage collector, thus we ignore these calls

svn-id: r52732
2010-09-15 12:14:34 +00:00
Filippos Karapetis
f446dbc8d5 SCI: Implemented the kPrintDebug SCI2.1 kernel function, used in Shivers (demo)
svn-id: r52665
2010-09-09 20:09:32 +00:00
Martin Kiewitz
a8afefd64b SCI: kIsOnMe is kOnMe, merge both into kIsOnMe
and map kOnMe for SCI2 to kIsOnMe, remove commented out hacks. fix signatures for those 2 functions, added TODO - someone should fix the SCI32 signatures

svn-id: r52664
2010-09-09 20:07:53 +00:00
Filippos Karapetis
746a1c5614 SCI: Kernel table changes
- Added the kernel names for all unimplemented kernel debug functions, and mapped
them all to kDummy, so that the kernel tables are correct and all kernel
functions are mapped (useful for debugging)
- Added a stub for kWinHelp (normally opens an external Windows help file), with
an appropriate dialog
- Added a stub for kWinDLL, which currently errors out on purpose (this needs to
be investigated, as it loads and uses external Windows DLLs)
- Readded kListIndexOf in kList (the signature was wrong when the previous commit
was made)

svn-id: r52660
2010-09-09 15:09:26 +00:00
Filippos Karapetis
c3c36cc59b SCI: SCI2/2.1 kernel table changes
- Mark several SCI2/2.1 kernel functions used for debugging as dummy
- Added an empty function for kSetWindowsOption, used for settings specific to
Windows versions (e.g. showing/hiding the title bar)
- Added a stub for kGetWindowsOption (currently returning 0 to a Windows related
option for Phantasmagoria)

svn-id: r52652
2010-09-09 11:40:46 +00:00
Lars Skovlund
792c5b2303 SCI: Support a few optional parameters in SCI32 List calls
the actual support was already there due to extensive code sharing
w/SCI0, so only modifying signatures here

svn-id: r52650
2010-09-09 10:46:43 +00:00
Martin Kiewitz
acc294c7a8 SCI: properly reversed kDoAvoider
getAngle()-code is missing though. Still fixes lsl2early hang on airport (bug #3037036), fixes kq4early unicorn doing moonwalk (kq4late still works as well)

svn-id: r52512
2010-09-04 07:29:27 +00:00
Martin Kiewitz
5fbe5f049b SCI: more work on replacing save dialog
also removing some previous code, because it wont work that way

svn-id: r52342
2010-08-24 14:40:18 +00:00
Martin Kiewitz
b192de5423 SCI: changing signature of kRestoreGame
and changing patch code accordingly

svn-id: r52320
2010-08-24 09:11:53 +00:00
Martin Kiewitz
e93eaa0d95 SCI: some more work on replacing restore dialog
svn-id: r52314
2010-08-23 23:04:07 +00:00
Filippos Karapetis
68f3cc944c SCI: Reimplemented the kShow kernel command, used by the inbuilt SCI debugger. There is no real need to implement kernel debug commands, but since this one maps almost directly to our own "show" debug command, it has been reimplemented (was removed in rev #45310). Normally, there is no real need to implement kernel functions for debug functionality, since there are advanced tools for this purpose nowadays (plus, ScummVM's debugger). Fixes bug #3050616 - "QFG1 EGA: priority/control/view functions crash, debug mode"
svn-id: r52281
2010-08-22 16:30:33 +00:00
Filippos Karapetis
3268238364 SCI: Fixed script bug #3048054 - "LONGBOW: crash when opening hand code" (German version)
svn-id: r52196
2010-08-18 20:28:48 +00:00
Filippos Karapetis
d0d677ab75 SCI: Fixed bug #3042964 - "KQ4: Signature Mismatch"
svn-id: r52180
2010-08-18 05:27:13 +00:00
Martin Kiewitz
8889a6574d SCI: adding workaround for sq1
when restoring on arcada in some rooms (bug #3040908)

svn-id: r51984
2010-08-11 14:35:42 +00:00
Martin Kiewitz
425b90f6d2 SCI: adding kDoSound(fade) workaround table to sci1early
fixes kq5 bug #3037594 thx to [md5] for testing

svn-id: r51686
2010-08-03 12:39:11 +00:00
Filippos Karapetis
5ca6b33ba7 SCI: Silenced some sound related warnings. Added an empty function for kDoSound(Restore), called when restoring games
svn-id: r51661
2010-08-02 21:20:43 +00:00
Filippos Karapetis
065d32ec00 SCI: Fixed script bug #3037835 - "ISLANDBRAIN: Crash when breeding second-generation hybrid"
svn-id: r51611
2010-08-02 11:46:03 +00:00
Filippos Karapetis
f434f901bd SCI: Fixed script bug #3038077 - "PQ3 : Engine Abort While Plotting Crimes", together with 2 subsequent similar bugs
svn-id: r51609
2010-08-02 09:04:14 +00:00
Matthew Hoops
75b5ac38fb SCI: Fix saving/restoring games in fan games
The SCI Studio function library incorrectly calls kDeviceInfo with one parameter to get the current device.

svn-id: r51514
2010-07-30 18:45:28 +00:00
Martin Kiewitz
c785645123 SCI: adding workaround for kSetCursor kq5cd
adding comments as well

svn-id: r51510
2010-07-30 15:26:30 +00:00
Martin Kiewitz
034fb5343f SCI: cleaning up kSetCursor
showing warning about unsupported mag-cursor when argc = 10 is used
removing argc = 9 support, must have been a script bug somewhere

svn-id: r51500
2010-07-30 08:21:54 +00:00
Martin Kiewitz
021c5d11db SCI: changed kRandom signature
accepts 1-3 parameters now for all SCI versions (shouldnt hurt and argc 3 will error() out anyway)
changed comments a bit

svn-id: r51438
2010-07-28 21:55:40 +00:00
Martin Kiewitz
abf53f839a SCI: implement additional variants of kRandom
fixes pq1vga poker game (bug #3036125)

svn-id: r51435
2010-07-28 21:47:15 +00:00
Martin Kiewitz
c0474c91c4 SCI: fixes for qfg2
adding workaround
changing signature for dummy kDoSound call

svn-id: r51411
2010-07-28 11:22:58 +00:00
Matthew Hoops
50e493f3ef SCI: Fix bug #3035720 - SQ1SCI demo: Menu crash
kCelWide and kCelHigh are called with the second two parameters as objects instead of integers. We fake return the real width/height of the view in question to allow the quit menu to work. Values found by examining the view  passed as the first parameter.

svn-id: r51401
2010-07-28 03:54:14 +00:00
Martin Kiewitz
6e8b11867f SCI: fixing signature of kCheckFreeSpace
svn-id: r51394
2010-07-27 21:30:15 +00:00
Martin Kiewitz
b873cf2ebf SCI: changes for mother goose sci2.1
changed signature for kSetCursor sci2.1
added workarounds
added separate gameid for mother goose sci2.1

svn-id: r51385
2010-07-27 19:09:57 +00:00
Martin Kiewitz
3cae0f3452 SCI: kCheckFreeSpace support for sci1.1
and possible sci32

svn-id: r51383
2010-07-27 18:45:32 +00:00
Martin Kiewitz
c422e39bf8 SCI: implemented kPalette(save/restore)
svn-id: r51381
2010-07-27 17:51:44 +00:00
Filippos Karapetis
bc6baef0c0 SCI: Fixed bug #3035186 - "ECOQUEST2: Crash When Receiving Ecorder". Also removed the now obsolete kStringCpy workaround table.
svn-id: r51372
2010-07-27 14:51:08 +00:00