Commit Graph
4076 Commits
Author SHA1 Message Date
md5 8ef4594f9b SCI2+: Set the correct segment for SCI32 strings/arrays when loading
This was an omission, observed after a discussion with clone2727
2011-02-15 01:30:33 +02:00
Matthew Hoops 31539697dc SCI: Fix loading pre-version 28 saved games
This is a regression from a9b051beff
2011-02-14 16:01:04 -05:00
Lars Skovlund a5b198b233 Remove erroneous comment. It reflected a false belief resulting from
a missing parameter check, which has also been added.
2011-02-13 22:34:29 +01:00
Matthew Hoops b4ca2da72e SCI: Switch to true color mode for the GK2 demo Indeo3 video 2011-02-13 16:14:06 -05:00
Matthew Hoops 0be58b2694 SCI: Fix VMD coordinates
The suffix check for "vmd" failed for uppercase files.
2011-02-13 16:14:06 -05:00
Ori Avtalion 3354204f53 JANITORIAL: Remove extraneous parentheses
svn-id: r55890
2011-02-12 10:36:35 +00:00
Max Horn a9b051beff SCI: Simplify SegManager::saveLoadWithSerializer, cleanup
svn-id: r55883
2011-02-11 17:05:27 +00:00
Filippos Karapetis 745c04194a SCI: Added a workaround for MUMG Deluxe
svn-id: r55873
2011-02-10 16:49:46 +00:00
Filippos Karapetis e4b46bd159 SCI: Added resource manager support for changing the audio directory dynamically. Also,
moved some audio-specific resource code inside resource_audio.cpp

This functionality is used by kSetLanguage(), called when switching the language in
MUMG Deluxe from the game's main menu.

svn-id: r55872
2011-02-10 16:48:29 +00:00
Max Horn c093925763 SCI: Fix (rare) leak in kSaveGame, tweak kFileIOFindNext, cleanup
svn-id: r55867
2011-02-10 13:39:01 +00:00
Max Horn 42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Walter van Niftrik 386203a3d6 SCI: Do not try to dereference object name when it's not a pointer.
Stops flood of warnings in some Mac titles.

svn-id: r55849
2011-02-09 00:27:50 +00:00
Filippos Karapetis 93d22c21b5 SCI: Changed the warning when applying script patches into a debug output call
svn-id: r55837
2011-02-08 23:07:11 +00:00
Filippos Karapetis 72a9706950 SCI: Some work on robot videos
- The size of the videos is now calculated when they are loaded (this helps remove some
nasty hacks and constant memory reallocations and simplifies the code)
- Some work on frame placement (e.g. in robot 1305, Phantasmagoria)

svn-id: r55830
2011-02-08 19:50:45 +00:00
Max Horn 41121be4d6 GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
This avoids hiding an overloaded virtual method, which in turn can
cause weird bugs (see also the next commit).

svn-id: r55815
2011-02-07 22:58:22 +00: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
Matthew Hoops 46404940b5 SCI: Improve Mac SCI1.1+ cursor support
The scripts can pass a list of view id's from the DOS version that get remapped to CURS/crsr id's. GK1 cursors now work and Phantasmagoria uses the correct ones.

svn-id: r55791
2011-02-06 00:05:27 +00:00
Matthew Hoops 53d862af0b SCI: Add support for BE selector name tables
svn-id: r55780
2011-02-05 08:16:29 +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
Matthew Hoops 7c3d65912d SCI: Fix GK1 Mac messages
svn-id: r55750
2011-02-03 05:10:24 +00:00
Matthew Hoops 4088e735a9 SCI: Properly reset the array/string segment ids
svn-id: r55749
2011-02-03 04:06:22 +00:00
Matthew Hoops 4c0af01d6a SCI: Disable the special QFG1 Mac icon bar
The original interpreter completely ignores it in favor of the regular one.

svn-id: r55748
2011-02-03 02:26:57 +00:00
Matthew Hoops 47b2611f50 SCI: Add comment about GK1 Mac using kSetFontRes
svn-id: r55719
2011-02-02 14:52:02 +00:00
Matthew Hoops e1bdfe16e3 SCI: Make Hoyle4 workarounds without names so they work in the Mac version (that has no class names)
svn-id: r55711
2011-02-01 21:15:26 +00:00
Willem Jan Palenstijn 190bd60505 SCI: Make SCI3 propertyId endianness hack a bit cleaner
svn-id: r55542
2011-01-26 16:51:18 +00:00
Max Horn fec516e2b0 SCI: cleanup
svn-id: r55539
2011-01-25 20:21:57 +00:00
Lars Skovlund e1a9c866bf SCI3: Fix script abort during startup on Big Endian platforms
svn-id: r55525
2011-01-25 10:21:44 +00:00
David Turner a7f7b90aee SCI: Fixed possible use of uninitialized variable in SCI Script Debugger.
svn-id: r55487
2011-01-23 23:25:34 +00:00
Eugene Sandulenko caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko 806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +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 4818b2ae08 SCI: Add comment for GK1 workaround.
svn-id: r55391
2011-01-21 19:56:23 +00:00
Lars Skovlund 74f8462a7b SCI: Fix GK1 breaking into the debugger when watching the intro
svn-id: r55386
2011-01-21 19:33:36 +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 f680e24146 SCI: Added a hack to fix bug #3122075 - "LB1: Game play freezes when taking shower"
This is a regression from the new kInitBresen/kDoBresen functions, enabled in r52467.
Many thanks to waltervn for his work in bisecting this. The actual bug should be
found, but since only this death scene has an issue, it's not really worth the
effort. The old functions are based on observations, so there are many differences in
the way that they behave. If another test case is found, then this shall be examined
further. Until then, this simple and unobtrusive hack will do.

svn-id: r55251
2011-01-15 18:25:10 +00:00
Filippos Karapetis 0f9c33e02f SCI: cleaned up checkSelectorBreakpoint()
svn-id: r55250
2011-01-15 12:18:13 +00:00
Filippos Karapetis bb3fd747d4 SCI: Fixed bug #3155550 - "SQ4 Russian: Script error in Scate-o-rama"
svn-id: r55218
2011-01-12 23:53:14 +00:00
Filippos Karapetis c215d85c33 SCI: Added a workaround for script bug #3156472 - "King's Quest 5 cdrom version crash on escape"
svn-id: r55217
2011-01-12 23:33:30 +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 8c554a8ec2 SCI2: Updated comments
svn-id: r55177
2011-01-08 23:15:10 +00:00
Filippos Karapetis da52b3a267 SCI2.1: Added a comment with the SCI2.1 games using a SCI2 kernel
svn-id: r55176
2011-01-08 23:14:11 +00:00
Filippos Karapetis dd6fd0ef27 SCI2.1: Added some information about kSetPalStyleRange, kNewRoom and kMorphOn
svn-id: r55165
2011-01-08 12:44:11 +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 c2acabd710 SCI2.1: Some functionality for Phantasmagoria 1 and MUMG Deluxe
- Added a stub for kSetLanguage, used in MUMG Deluxe - this needs support at the resource
manager level
- Made kGetSierraProfileInt a stub function (it's used in the Windows version of
Phantasmagoria 1 to override the video speed setting obtained from kGetConfig)

svn-id: r55161
2011-01-08 11:19:20 +00:00
Filippos Karapetis dd026268aa SCI: Fixed typo
svn-id: r55160
2011-01-08 10:34:04 +00:00
Filippos Karapetis 87a3fcaf03 SCI: Fixed a typo
svn-id: r55159
2011-01-08 10:25:12 +00:00