Commit Graph
642 Commits
Author SHA1 Message Date
md5 d7c8ed0f5d SCI: Cleanup 2011-03-13 23:34:06 +02:00
md5 dbd3f440d2 SCI: Added some support code for Longbow Amiga 2011-03-05 18:47:13 +02:00
md5 d95b5331fb SCI: Some palette related changes
- Moved palette color count inside the GfxPalette class
- Enabled all of the kPalette subops for 16 color SCI1 games, apart from
the ones for intensity palette animation, and palette resource loading
- Removed isVGA() and isAmiga32color() methods from the resource manager -
they ended up in having inconsistent code
2011-03-04 22:04:13 +02:00
md5 ed7c481e93 SCI: Cleanup 2011-03-02 08:24:31 +02:00
md5 8571083700 SCI2+: Mention that the actual problem with text wrapping happens because of the unimplemented kTextSize kernel call in SCI32 2011-02-26 06:13:08 +02:00
md5 e0ce5a61b5 SCI: Added an initial implementation of RemapByPercent, which fixes the palette in the PQ:SWAT demo 2011-02-24 21:27:31 +02:00
md5 a9620d938d SCI: Some work on kRemapColors, and added a note that it operates on an RGBA
palette
2011-02-22 19:11:35 +02:00
Filippos Karapetis 6f9ac84f77 SCI: Converted the robot decoder into a regular video decoder, and decoupled it from the
SciEngine class

- Robot videos are now shown in frameOut(), like they should, and kRobot(sync) is only
used for syncing with the game scripts
- Hooked video playing into the "play_video" console command

svn-id: r55801
2011-02-07 12:24:09 +00:00
Filippos Karapetis 512bcf8b90 SCI: Rewrote the robot playing code in a way similar to other video decoders
- The code now streams videos instead of loading them in memory, without utilizing seeking
- Removed the sound-related robot code from the graphics classes
- Started implementing the code for the sound in robot videos (still not finished)

svn-id: r55772
2011-02-04 17:51:59 +00:00
Matthew Hoops be1f62af23 SCI: Add a stub for kFont which calls kSetFontRes as a subop
svn-id: r55755
2011-02-03 18:07:47 +00:00
Matthew Hoops 4d088332a2 SCI: Add support for GK1 Mac high-res fonts
svn-id: r55754
2011-02-03 15:51:51 +00:00
Filippos Karapetis 74caf6cd71 SCI21: Some robot related changes
- Don't reallocate the frame buffer on each update if its dimensions haven't changed
- Don't attempt to display the currently unsupported v4 robot files (used in PQ:SWAT)
- Signed/unsigned fixes
- Disabled the unused getFrameRect() function
- Some cleanup and reordering

svn-id: r55752
2011-02-03 14:37:50 +00:00
Filippos Karapetis 89087b18c7 SCI21: Allow the game scripts to sync robot videos, like in SSCI. Also, references of the SciEngine class to itself via g_sci have been removed
svn-id: r55422
2011-01-22 13:01:10 +00:00
Lars Skovlund 0e33dd9164 SCI: Partial robot support, currently disabled since it does not run
asynchronously as it should.

svn-id: r55382
2011-01-21 18:53:35 +00:00
Filippos Karapetis d8682a74a5 SCI: Simplified the kMoveCursor code
svn-id: r55216
2011-01-12 23:30:59 +00:00
Filippos Karapetis 6b6e7fcfb3 SCI2: Some documentation/stubs
- Fully documented the parameters of kSetShowStyle
- Added another subop stub for kCreateTextBitmap

svn-id: r55183
2011-01-09 13:27:00 +00:00
Filippos Karapetis 12b44f2fc0 SCI2.1: Some stubs used by SQ6
- Added a stub and some info about the (large) kScrollWindow kernel call
- Added info about kMovePlaneItems

svn-id: r55163
2011-01-08 12:28:47 +00:00
Filippos Karapetis 87a3fcaf03 SCI: Fixed a typo
svn-id: r55159
2011-01-08 10:25:12 +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 32d7e687ee SCI: debugC calls no longer require a debug level of 2 to show output
svn-id: r55086
2011-01-01 12:48:12 +00:00
Filippos Karapetis d886c037dd SCI: Fix ScummVM freezing during the credits scene in EcoQuest 1 (bug #3101846)
svn-id: r54395
2010-11-20 19:52:31 +00:00
Filippos Karapetis 103ac9c566 Fixed signed/unsigned warning
svn-id: r54217
2010-11-12 13:05:54 +00:00
Filippos Karapetis 31719eeb28 SCI2: Make robots return immediately for now, till they're implemented
Based on a patch by lskovlun

svn-id: r54214
2010-11-11 23:48:01 +00:00
Filippos Karapetis d8eefdb52a SCI/SCI2: Some slight changes to the graphics code
- Changed the SCI1 EGA games workaround in kGraphDrawLine() to match the ones in kGraphFillBoxAny() and kNewWindow, updating the relevant comments
- Added some comments in kSetShowStyle()

svn-id: r54142
2010-11-08 16:09:59 +00:00
Filippos Karapetis f3270f1957 SCI: Fixed access to dest in kTextSize() (thanks LordHoto)
svn-id: r53498
2010-10-15 14:33:57 +00:00
Filippos Karapetis 7cdddd5ffb SCI: Fixed code bugs from bug #3087872 - "SCI: Code analysis warnings"
svn-id: r53482
2010-10-15 12:40:24 +00:00
Filippos Karapetis ce8a2fbbbc SCI: Added support for SCI1.1+ magnifier cursors (bug #3034973).
These are special cursors which zoom parts of a view dynamically. Examples
are Freddy Pharkas, when reading the prescription with the whiskey and LB2,
when using the magnifying glass on the Rosetta Stone

svn-id: r53003
2010-10-03 22:41:35 +00:00
Filippos Karapetis 4edce6d860 SCI2/2.1: Changes to the plane code
Moved some plane related functions inside updatePlane() instead of frameOut(). Cleanup.

svn-id: r52804
2010-09-19 14:50:28 +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
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
Matthew Hoops 61adb401b2 SCI: Cleanup kWinHelp's dialog handling
Don't display the message twice and now we use the filename in the message.

svn-id: r52663
2010-09-09 18:34:27 +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
Martin Kiewitz 9c67db6b0d SCI: adding text code reference support
fixes glossary in pepper, bug #3040039

svn-id: r52651
2010-09-09 10:52:17 +00:00
Martin Kiewitz 47ad577a78 SCI: ability to change r_acc within DrawControl
preparation for returning rect array on |r| textcodes

svn-id: r52642
2010-09-08 20:11:11 +00:00
Martin Kiewitz f95a2ac499 SCI: removing non-sierra sci code in kDirLoop
svn-id: r52515
2010-09-04 09:20:38 +00:00
Martin Kiewitz e4c07925ec SCI: kDirLoop freshly reversed
svn-id: r52510
2010-09-03 22:15:08 +00:00
Martin Kiewitz ff7476d9f1 SCI: adding virtual lists for qfg-import rooms
now lists import files of all possible games, adds game title before that, removes game prefixes for all files

svn-id: r52441
2010-08-29 15:13:25 +00:00
Filippos Karapetis 542711cea7 SCI: Fixed bug #3048908 - "PQ3EGA: Wrong speech bubble background colors" and added a FIXME inside kGraphDrawLine
svn-id: r52291
2010-08-22 23:55:29 +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 397df8f350 SCI: added a wrapper for GUI::MessageDialog
svn-id: r52171
2010-08-17 20:33:22 +00:00
Martin Kiewitz 0c7932cc7c SCI: fixing kGraphFillBoxAny implementation
working now like in sierra sci, when using priority/control - fixes pepper adventures in time - no failure screen - bug #3040185
cleanup of GfxPaint16::fillRect

svn-id: r51994
2010-08-11 18:19:58 +00:00
Martin Kiewitz 0f339921ed SCI: only display qfg-import information dialog once
per room usage

svn-id: r51664
2010-08-02 21:57:17 +00:00
Max Horn bcfb8a030a SCI: Rewrap overlong lines; improve dialog text slightly
svn-id: r51641
2010-08-02 17:13:09 +00:00
Martin Kiewitz b914ad3e84 SCI: fixing typo
svn-id: r51614
2010-08-02 12:48:28 +00:00
Martin Kiewitz e59db80dec SCI: qfg2/3 import
- change directory button disabled
- showing message where to put characters, if saved from original sci interpreter

svn-id: r51613
2010-08-02 12:39:01 +00:00
Matthew Hoops 79bf94c877 SCI: Move kernelShakeScreen to GfxScreen so it can be used in SCI32 (it's used in GK1)
svn-id: r51583
2010-08-01 17:54:48 +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 2fc1461f2b SCI: arguments of mag-kSetCursor documented
adding primitive support to just set the cursor to the required view resource, nothing else implemented yet

svn-id: r51501
2010-07-30 08:44:40 +00:00