36794 Commits

Author SHA1 Message Date
Walter van Niftrik
49cfbbaffc SCI: Hook up AvoidPath debug mode to pathfinding debug channel.
svn-id: r47692
2010-01-30 01:02:29 +00:00
Filippos Karapetis
c8501e2b26 Implemented kString case 12 - it was really kFormat in disguise :)
svn-id: r47691
2010-01-30 00:21:32 +00:00
Filippos Karapetis
694d30eb31 Don't cripple setVolume(), but throw a warning when receiving invalid volumes and correct them for now - fixes the music in GK1
svn-id: r47690
2010-01-29 23:59:50 +00:00
Johannes Schickel
8e69a24783 Fix yet another use of possibly undefined behavior reported by syke.
svn-id: r47689
2010-01-29 23:52:58 +00:00
Filippos Karapetis
8977c1a4aa Disabled the MIDI volume changing code till we figure out why it's getting volume values greater than 127
svn-id: r47688
2010-01-29 23:08:12 +00:00
Filippos Karapetis
99f59d858e _gui and _gui32 are now properly initialized
svn-id: r47687
2010-01-29 22:56:39 +00:00
Walter van Niftrik
6703576452 SCI: Partly revert r47597, as it is superseded by r47683.
svn-id: r47686
2010-01-29 22:51:22 +00:00
Johannes Schickel
595a2e16f1 Fix use of undefined behavior. (Thanks to syke for reporting)
svn-id: r47685
2010-01-29 22:43:23 +00:00
Lars Skovlund
027b44673a Document my last change
svn-id: r47684
2010-01-29 22:29:03 +00:00
Lars Skovlund
0e8b8f1962 SCI: uge? and ult? opcodes now work correctly when comparing pointers with 1000.
svn-id: r47683
2010-01-29 22:17:27 +00:00
Matthew Hoops
5b9b6b6b70 Fix compile when ENABLE_SCI32 is not set.
svn-id: r47682
2010-01-29 22:02:28 +00:00
Martin Kiewitz
c6e095715c SCI: adding shakeScreen() for gui32 for lsl6
svn-id: r47681
2010-01-29 21:51:21 +00:00
Matthew Hoops
1bc1ff1705 Silence gcc warnings, have gui32.cpp only build when ENABLE_SCI32 is defined.
svn-id: r47680
2010-01-29 21:34:59 +00:00
Martin Kiewitz
a800855bf4 SCI: added new SciGui32 class, Gfx class needs some work though and hopefully i didnt overlook some kernel function that is also used by sci32. now using plane left/top
svn-id: r47679
2010-01-29 21:30:46 +00:00
Filippos Karapetis
85517515a7 Reverting incorrect rev. 47675. The actual problem was that SCI0 doesn't clear a song's handle when stopping it, but when disposing it. Hopefully, a lot of the SCI0 sound oddities are fixed now...
svn-id: r47678
2010-01-29 19:02:13 +00:00
Filippos Karapetis
31319de828 Always prefer MIDI drivers over the other ones
svn-id: r47677
2010-01-29 18:30:19 +00:00
Filippos Karapetis
ddda7d12bd Wording
svn-id: r47676
2010-01-29 17:47:17 +00:00
Filippos Karapetis
be293572d2 Don't modify the objects of sound slots that are already stopped, as the associated objects could have been disposed. Fixes odd crashes in SQ3
svn-id: r47675
2010-01-29 17:45:30 +00:00
Martin Kiewitz
266ff9934d SCI: removing bit 1 support (was introduced because of problems in sci1.1 games, isnt valid anymore), fixes kq5cd
svn-id: r47674
2010-01-29 16:26:40 +00:00
Filippos Karapetis
233f81c5e1 Added support for the hires graphic resources of the Windows version of GK1
svn-id: r47673
2010-01-29 16:25:18 +00:00
Martin Kiewitz
69b7497cf7 SCI: calculating celRect the right way for sci32
svn-id: r47672
2010-01-29 16:20:22 +00:00
Martin Kiewitz
01fd01122a SCI: fixing cursor in sci32 for clone ;)
svn-id: r47671
2010-01-29 15:46:22 +00:00
Matthew Hoops
f7a72c897a Add duplicate entries of GK1 CD with the Windows platform set so that setting the platform to Windows won't appear as a missing entry.
svn-id: r47670
2010-01-29 15:07:20 +00:00
Filippos Karapetis
b374478cd0 Added static selectors for SCI2-SCI2.1 games (fixes the demo of Torin's Passage)
svn-id: r47669
2010-01-29 14:57:18 +00:00
Martin Kiewitz
1bcbd71c97 SCI: hacked up a bit sci32 graphics to support (theoretically) scaling
svn-id: r47668
2010-01-29 14:05:21 +00:00
Martin Kiewitz
caeafb29ff SCI: little hack so that old views are erased in sci32
svn-id: r47667
2010-01-29 13:48:02 +00:00
Max Horn
b124a0c1cd SCI: Reduce header interdependencies a bit
svn-id: r47666
2010-01-29 11:05:06 +00:00
Max Horn
4ffec28103 SCI: Move selector stuff to new header; reorder k_argc & k_argp param of invoke_selector
svn-id: r47665
2010-01-29 11:03:54 +00:00
Walter van Niftrik
52ef12547f SCI: Added OnStartup debug flag to start the debugger at the start of the game.
svn-id: r47663
2010-01-29 01:31:05 +00:00
Walter van Niftrik
5ffba8631d SCI: Fix out-of-bounds error in MT-32 patch reading in GM mode.
svn-id: r47662
2010-01-29 01:09:41 +00:00
Martin Kiewitz
981252b1fe SCI: view class fix for hires views that are larger than 64k (fixes kq7 cel corruption)
svn-id: r47661
2010-01-29 00:03:10 +00:00
Lars Skovlund
39ebb168a1 SCI: Make SQ6 sound work. The meaning of these extra parameters is not yet understood.
svn-id: r47660
2010-01-28 23:11:55 +00:00
Filippos Karapetis
e110b02895 Added some more information on the errors thrown by lookupString() and freeString() - Torin full currently crashes in lookupString, called from kString (strcpy)
svn-id: r47659
2010-01-28 22:58:09 +00:00
Filippos Karapetis
b20ccaa8ab Corrected the map number for the GK2 resource patch files, and added some preliminary non-working code for the hires content in GK1
svn-id: r47658
2010-01-28 22:26:13 +00:00
Martin Kiewitz
a35e1a2100 SCI: removed upscaled hires switch for sci2.1+ games (not needed anymore), added #ifdef SCI32 for gk1 upscaled hires switch
svn-id: r47657
2010-01-28 21:59:05 +00:00
Martin Kiewitz
81a0d7d20d SCI: changing to upscaled hires for gk1 and kq6 when being on platform windows, added comment explaining the situation about gk1/dos
svn-id: r47656
2010-01-28 21:53:07 +00:00
Martin Kiewitz
8653f62b15 SCI: added todo for upscaled hires on sci2
svn-id: r47655
2010-01-28 21:24:28 +00:00
Martin Kiewitz
e85e045851 SCI: removed obsolete SCI2 upscaledHires
svn-id: r47654
2010-01-28 21:12:39 +00:00
Filippos Karapetis
a83fca1430 kDisposeList() is not needed according to waltervn, as the garbage collector automatically clears unused objects
svn-id: r47653
2010-01-28 21:05:42 +00:00
Johannes Schickel
347a974609 Add some paranaoia assert (and a related TODO) to the MSIMA2 implementation.
svn-id: r47652
2010-01-28 21:05:10 +00:00
Martin Kiewitz
9e511e0751 SCI: detecting hires for SCI2+ games, qfg4cd is sci2.1 but still 320x200
svn-id: r47651
2010-01-28 21:01:57 +00:00
Filippos Karapetis
3c46bc33aa Disabled the automatic list fixing feature, introduced in rev. #47636 (there's no point in fixing lists created by game scripts)
svn-id: r47650
2010-01-28 20:53:33 +00:00
Walter van Niftrik
639fb4c389 SCI: Cleanup
svn-id: r47649
2010-01-28 20:29:45 +00:00
Filippos Karapetis
493350e905 SCI2.1: Added a dummy function for kRobot (with some info on its parameters), assigned IsOnMe to OnMe (needs verification, but seems to be correct) and changed kSave(8) to return nonzero. The menu of the Phantasmagoria demo is now shown, together with its creepy music :)
svn-id: r47648
2010-01-28 19:57:14 +00:00
Martin Kiewitz
f7692e724f SCI: some progress on REing robot files (99% comments only)
svn-id: r47647
2010-01-28 19:28:56 +00:00
Walter van Niftrik
31728b32ca SCI: Add debug opcodes
svn-id: r47646
2010-01-28 19:22:58 +00:00
Matthew Hoops
d883b6215f Detect whether to use the modified SCI2 or SCI2.1 kernel table based on the kDoSound call used in Sound::play(), which fixes at least my version of KQ7 - probably others. The kernel table initialization now occurs after the script signatures are adjusted as we need it adjusted before checking through Sound::play for the kDoSound call.
svn-id: r47645
2010-01-28 18:57:31 +00:00
Martin Kiewitz
8ecd76e415 SCI: process robot files again (i need those for REing)
svn-id: r47644
2010-01-28 16:30:46 +00:00
Lars Skovlund
1ceaf34948 Handle calls to NewNode() with just one parameter.
Takes care of Phantasmagoria, Torin, etc.

svn-id: r47643
2010-01-28 15:01:28 +00:00
Filippos Karapetis
104cc92d6b Changed run_vm() to use the sci_opcodes enum, and fixed several wrong opcodes inside that enum
svn-id: r47642
2010-01-28 13:07:47 +00:00