Commit Graph
4076 Commits
Author SHA1 Message Date
Filippos Karapetis 3f4ef3aff8 Removed a hack for the demo version of Torin's passage. It errors out because the static selector vocabulary for SCI2+ games isn't implemented yet
svn-id: r47640
2010-01-28 10:34:11 +00:00
Filippos Karapetis a408a025b6 Since we fix the list problems inside isSaneNodePointer(), don't abort processing of the list
svn-id: r47637
2010-01-28 10:04:54 +00:00
Filippos Karapetis 383019c518 - The list checks now throw more verbose warnings
- Some obvious list problems are now fixed automatically when found, after the relevant warnings are shown
- kDisposeList now clears all the nodes in the list
- Some cleanup

svn-id: r47636
2010-01-28 09:49:54 +00:00
Filippos Karapetis 33780aa3a5 Fixed the demos of LSL1 and LSL5
svn-id: r47625
2010-01-28 02:16:20 +00:00
Filippos Karapetis 75ae56b0d4 Improved kSetCursor() semantics detection
svn-id: r47624
2010-01-28 02:15:15 +00:00
Filippos Karapetis 2974ead245 Corrected assert inside load_script. Fixes loading in SQ4CD
svn-id: r47617
2010-01-27 23:43:23 +00:00
Martin Kiewitz 90712388f8 SCI: added workaround for laura bow 2 game menu (same issue as in pharkas)...sigh
svn-id: r47611
2010-01-27 21:33:51 +00:00
Martin Kiewitz 155660c443 SCI: changed the pharkas workaround to also cover pharkas-floppy demo
svn-id: r47606
2010-01-27 19:28:13 +00:00
Matthew Hoops 12569a5f32 Only reshow the cursor after playing a video if it was originally showing beforehand. This fixes the GK1 demo menu.
svn-id: r47602
2010-01-27 16:54:58 +00:00
Filippos Karapetis ae7696e5f1 Oops.... actually close the defgroup :)
svn-id: r47599
2010-01-27 14:10:19 +00:00
Filippos Karapetis ef313aee02 Fixed comment about vocabulary, so that it doesn't refer to the line below it
svn-id: r47598
2010-01-27 14:08:06 +00:00
Walter van Niftrik ed199f38b4 SCI: Experimental fix for Longbow outlook crash.
When using a pointer in number arithmetic, substitute a large value instead
of 0 (cf. Hoyle hack in kAbs).

svn-id: r47597
2010-01-27 13:14:28 +00:00
Filippos Karapetis b24be4f526 Added support of the subtraction of two pointers, when they got the same segment. This operation will yield a number, like in C, and it's used by script 385 in Castle of Dr. Brain (the hangman script). Fixes exiting room 360 (the puzzle room) in Castle of Dr. Brain
svn-id: r47595
2010-01-27 12:13:39 +00:00
Matthew Hoops 0717491b5b Downgrade the 'attempt to use invalid/unused file handle' error to a warning. This fixes the GK2 demo which now is playable and the slideshow is viewable. The GK2 demo scripts attempt to open the VERSION file which does not exist.
svn-id: r47589
2010-01-27 04:48:50 +00:00
Walter van Niftrik 3f7b6f9472 SCI: Restore pointer checks removed in r47585.
svn-id: r47587
2010-01-27 03:37:56 +00:00
Walter van Niftrik 7c0dcf108c SCI: Add pointer comparison support to signed comparison operators.
svn-id: r47585
2010-01-27 01:47:41 +00:00
Martin Kiewitz e0d05a482c SCI: changed flags (uint16) to force (bool) for set/merge palette methods
svn-id: r47578
2010-01-26 22:45:52 +00:00
Filippos Karapetis d5724a2eda Fixed reading of options file (game.opt) for Hoyle 3
svn-id: r47575
2010-01-26 21:27:13 +00:00
Filippos Karapetis 545e221d41 Added information about all the vocabularies used in SCI
svn-id: r47573
2010-01-26 20:40:25 +00:00
Walter van Niftrik 473d8b7c2f SCI: Add string support for odd-offset pointers into reg_t-based segments.
svn-id: r47572
2010-01-26 19:51:08 +00:00
Filippos Karapetis 0f76902068 Mention that the signature of kUnload has been set like this because of the SQ1 bug
svn-id: r47569
2010-01-26 15:39:23 +00:00
Filippos Karapetis d154b9f008 Wording - we ignore calls to kUnload with less than 2 parameters
svn-id: r47564
2010-01-26 11:28:11 +00:00
Filippos Karapetis e0293562de Ignore kUnload calls which are not made with less than 2 parameters. Apparently, according to the FreeSCI bugs list, SQ1 calls it with 1 parameter when exiting the Ulence flats bar
svn-id: r47563
2010-01-26 11:25:15 +00:00
Martin Kiewitz fd5e26806e SCI: dont fix line color for amiga 32 color
svn-id: r47561
2010-01-25 20:46:09 +00:00
Martin Kiewitz ba7eb79074 SCI: removed EGA mapping for amiga games, cause changing K_GRAPH_GET_COLORS_NR to support amiga also fixes it - also fixes other odd issues like the ones in kq5 and castle of dr. brain/sq1 (thx. to waltervn for finding this out)
svn-id: r47560
2010-01-25 20:44:13 +00:00
Filippos Karapetis dfafec6486 Fixed kSetCursor semantics detection for KQ5 Amiga, by making a hack for KQ5 CD specific to that version only
svn-id: r47557
2010-01-25 17:30:59 +00:00
Johannes Schickel aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Walter van Niftrik e7e9006122 SCI: Fix list control scrolling in Jones EGA and VGA.
svn-id: r47511
2010-01-24 18:57:23 +00:00
Walter van Niftrik 10da245619 SCI: Cleanup
svn-id: r47506
2010-01-24 17:52:27 +00:00
Walter van Niftrik bffdcc9e54 SCI: Fix left aligning and centering in kFormat.
svn-id: r47500
2010-01-24 15:21:51 +00:00
Filippos Karapetis aab6485d32 Always memset the newly malloc'ed argument memory to 0 inside kFormat
svn-id: r47498
2010-01-24 11:57:10 +00:00
Filippos Karapetis 1352940688 Replaced CHECK_OVERFLOW1 with asserts
svn-id: r47496
2010-01-24 11:00:21 +00:00
Filippos Karapetis 5b4fcfdbcb Added some skeleton code for kPalVary()
svn-id: r47485
2010-01-23 21:33:24 +00:00
Filippos Karapetis dcbcb41855 kSetSynonyms is really parser related, but it's an empty function in games without a parser
svn-id: r47484
2010-01-23 20:27:14 +00:00
Filippos Karapetis 722233fd0d - Moved all of the parser-related variables inside the Vocabulary class
- Moved the kSetSynonyms() function inside kscripts (as it's for script synonyms, not parser word synonyms)
- The parser vocabulary is now only initialized for SCI0 and SCI01 games, which had a parser

svn-id: r47483
2010-01-23 19:10:56 +00:00
Johannes Schickel edbc368398 Cleanup. (And along with it add some additional asserts).
svn-id: r47482
2010-01-23 18:24:11 +00:00
Filippos Karapetis df149e1509 Separated the parser code
svn-id: r47480
2010-01-23 17:55:54 +00:00
Filippos Karapetis f007435b82 sfx_init_flags is not used in the new sound code
svn-id: r47464
2010-01-23 12:10:31 +00:00
Martin Kiewitz e99adedac2 SCI: separate fix function for kDrawControl rects
svn-id: r47462
2010-01-23 11:00:24 +00:00
Martin Kiewitz 81e85b3186 SCI: dont swap coordinates on rects when both are "wrong", will fix button placement and gfx corruption when challenging jones (caused by duplicate buttons having lower right 0, 0) - function needs some more work
svn-id: r47446
2010-01-22 23:02:33 +00:00
Martin Kiewitz fa80444a12 SCI: restoring r47412, we were right all along but this "hack" was done on the sierra sci interpreter for jones ega/vga only (talkie NOT included). So this restore does it game specific now, causing no regressions anywhere else. We detect jones/talkie as "jones" as well, may cause regressions for talkie
svn-id: r47445
2010-01-22 22:34:14 +00:00
Martin Kiewitz 4500910b49 SCI: reverting r47412, change was incorrect and also resulted in broken animations inside text boxes in kq5. jones also uses hardcoded -1 priority for control icons.
svn-id: r47444
2010-01-22 19:25:48 +00:00
Filippos Karapetis 47c97f4a60 - The reverb value is now obtained from the music driver
- Implemented kSetReverb (0x50) and kResetOnPause (0x4C)

svn-id: r47433
2010-01-22 12:26:12 +00:00
Johannes Schickel 8257b1106c Fix gcc warning.
svn-id: r47425
2010-01-21 22:44:25 +00:00
Filippos Karapetis c46c42ceb0 SCI: Saved games can now be loaded from ScummVM's launcher
svn-id: r47423
2010-01-21 22:20:16 +00:00
Martin Kiewitz e85d2a023d SCI: control icons now use objects priority selector instead of hardcoded priority 255. fixes jones speech bubbles
svn-id: r47412
2010-01-20 21:59:12 +00:00
Martin Kiewitz 49d3ba06bf SCI: kDrawCel workaround documented and not temporary anymore
svn-id: r47409
2010-01-20 19:45:42 +00:00
Martin Kiewitz 0b2453aed8 SCI: workaround for game menu/quit menu in freddy pharkas till vm issue is resolved
svn-id: r47407
2010-01-20 17:56:00 +00:00
Filippos Karapetis f0e6c3f142 - Removed the resetDriver() hack. The reason why notes stopped being played sometimes was actually mixer->stopAll(), which stopped the music stream as well (spotted by waltervn)
- Hooked setReverb() to actually set music reverb

svn-id: r47392
2010-01-19 20:02:17 +00:00
Martin Kiewitz e7c1a34b3f SCI: Remove upper 4 bits when drawing lines on EGA games (fixes window colors in kq1 and others)
svn-id: r47385
2010-01-19 17:45:14 +00:00