Filippos Karapetis
a6a482b83c
SCI: Added a version of allNotesOff() which sends messages only to the channels used by the associated song instead of all channels
...
svn-id: r49673
2010-06-14 22:35:49 +00:00
Filippos Karapetis
1fde7f1abc
Removed the code used for tracking script code block relocations in SCI0-SCI1 games, as we don't actually relocate these blocks, and it was used solely for verification of the exports table. The issue that this warning was created for should no longer occur
...
svn-id: r49669
2010-06-14 20:45:00 +00:00
Filippos Karapetis
86878450ee
Cleanup of the SCI0 object initialization code
...
svn-id: r49666
2010-06-14 19:37:19 +00:00
Matthew Hoops
303c7b0a8d
Ignore and remove invalid plane and item objects in kFrameout. Fixes loading in-game in GK1.
...
svn-id: r49663
2010-06-14 16:58:15 +00:00
Filippos Karapetis
60eced7a81
Cleanup
...
svn-id: r49662
2010-06-14 16:57:43 +00:00
Filippos Karapetis
b04269e7e4
Fixed GK1 again, including the inventory screen
...
svn-id: r49660
2010-06-14 16:04:28 +00:00
Filippos Karapetis
95f55f3b05
Hopefully fixed kOnMe (SCI2) and implemented kIsOnMe (SCI2.1). GK1 and the demo of Phantasmagoria 1 should now be responding to mouse clicks and movement correctly
...
svn-id: r49659
2010-06-14 15:49:11 +00:00
Eugene Sandulenko
4d517ed0e9
Extended advancedDetector with depth parameter.
...
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.
svn-id: r49653
2010-06-14 14:50:23 +00:00
Filippos Karapetis
4f3bb60cd5
Really silence the warning with _bufSize
...
svn-id: r49652
2010-06-14 13:53:15 +00:00
Filippos Karapetis
5230930d95
Silenced warning
...
svn-id: r49651
2010-06-14 13:41:06 +00:00
Filippos Karapetis
2a78b82799
Fixed a bug with commit #49640
...
svn-id: r49650
2010-06-14 13:13:02 +00:00
Filippos Karapetis
cd77cb96fc
Some cleanup of the script locals code
...
svn-id: r49649
2010-06-14 12:44:57 +00:00
Filippos Karapetis
cfdbfaa28e
SCI: Limit the screen refresh rate to 60fps
...
svn-id: r49647
2010-06-14 08:36:52 +00:00
Filippos Karapetis
d36f6638c0
Fixed compilation with the old music code
...
svn-id: r49641
2010-06-13 22:48:49 +00:00
Filippos Karapetis
b5ebd40d61
The offset of script local variables is now calculated when the script is loaded, thus we no longer need to save it. Merged scriptInitialiseLocals() with scriptInitialiseLocalsZero()
...
svn-id: r49640
2010-06-13 22:15:30 +00:00
Filippos Karapetis
01d53a6216
Disabled two cases of findObjectByName() in SCI0 early games
...
svn-id: r49639
2010-06-13 22:01:10 +00:00
Filippos Karapetis
a4ac9347d4
Fixed regression from commit #49251 , and added an explanation. Calls to kNewNode with 1 parameter are handled properly again. Fixes the demo of Phantasmagoria 1. Thanks to lskovlun and waltervn for spotting this
...
svn-id: r49638
2010-06-13 21:43:13 +00:00
Filippos Karapetis
eff1d4bb1c
Added a default constructor for the ResourceSource struct
...
svn-id: r49622
2010-06-13 07:17:44 +00:00
Filippos Karapetis
6fa4d1ba80
Initialize compression-related variables when loading external patch files. Fixes Cassima's speech in the intro of KQ6 (the engine thought that the external patch files of her speech were compressed)
...
svn-id: r49606
2010-06-12 11:43:30 +00:00
Filippos Karapetis
f4739f9f68
Added debug output to kDoAudio and some music commands. Also added a warning when an audio stream can't be created. Finally, the debug level of the MIDI parser debug output has been raised to 4, as it's too verbose
...
svn-id: r49605
2010-06-12 11:41:22 +00:00
Filippos Karapetis
b97d7adc3b
Extended show_instruments to show the songs where each instrument is used in
...
svn-id: r49603
2010-06-12 09:29:28 +00:00
Filippos Karapetis
a8af267651
Renamed verify_midi to show_instruments (and fixed a bug with it at the same time). This command scans all songs, or a specific song of a game and displays the instruments used
...
svn-id: r49599
2010-06-11 19:49:41 +00:00
Filippos Karapetis
a08d06ad35
- Added a new debug command, verify_midi, which can be used to check all the songs of a game for unmapped instruments (still WIP and disabled)
...
- Fixed a bug in the verify_scripts command (it was loading the script resource twice)
svn-id: r49597
2010-06-11 14:47:13 +00:00
Martin Kiewitz
3269e5cc4c
SCI: adjust priority bottom, if its 200 to avoid possible out of bounds (sierra actually does the same)
...
svn-id: r49592
2010-06-11 09:17:11 +00:00
Filippos Karapetis
377cfe6fef
Added a new kernel function, kEmpty, for really empty (not dummy, i.e. unimplemented) functions
...
svn-id: r49591
2010-06-11 07:47:57 +00:00
Filippos Karapetis
5baa47a9cb
In SCI1.1, kSetSynonyms is a dummy (empty) function
...
svn-id: r49586
2010-06-10 23:16:32 +00:00
Martin Kiewitz
f470e1d96e
SCI: adding current delta to tick position when getting the setsignalloop command - fixes sq3 music slight delay before actual looping
...
svn-id: r49585
2010-06-10 20:52:04 +00:00
Matthew Hoops
9f907aac09
kSciAudioWPlay should not actually play the song, but 'pre-load' it. We fake the pre-loading with a flag that will return 0 if the song has been called with kSciAudioWPlay. Fixes the dream sequence sound in MUMG.
...
svn-id: r49583
2010-06-10 20:26:59 +00:00
Matthew Hoops
8f55c4ddb4
Allow for digits in stage directions in SCI32 games: GK1 floppy uses them.
...
svn-id: r49582
2010-06-10 18:16:05 +00:00
Max Horn
85b0ec3408
SCI: Fix some doxygen comments
...
svn-id: r49581
2010-06-10 15:26:26 +00:00
Max Horn
4b0f0894c4
SCI: Switch Console::cmdSelector to use Kernel::getSelectorName
...
svn-id: r49580
2010-06-10 15:26:10 +00:00
Max Horn
5424d8aecb
SCI: Get rid of DEFUN, cleanup
...
svn-id: r49579
2010-06-10 15:25:54 +00:00
Max Horn
874151f5d1
SCI: Cleanup kernel signature code a bit.
...
* Moved KSIG_SPEC_* from kernel.h to kernel.cpp
* Clarified the comment on KSIG_SPEC_* a bit
* Changed the other KSIG_ #defines into an enum
* Removed KSIG_TERMINATOR and KSIG_SPEC_ARITMETIC (sic)
svn-id: r49578
2010-06-10 15:25:36 +00:00
Max Horn
8295eb09cd
SCI: Fix Console::cmdValueType to handle all possible reg types
...
svn-id: r49577
2010-06-10 15:25:18 +00:00
Matthew Hoops
6ad04a4a96
Add support for AIFF sound in SCI32 Mac games and add support for AIFF/WAVE audio36 patches; minor cleanup.
...
svn-id: r49576
2010-06-10 15:06:25 +00:00
Filippos Karapetis
5330e632de
Don't attempt to modify the printLang selector if it doesn't exist
...
svn-id: r49575
2010-06-10 14:02:20 +00:00
Max Horn
afa2af5dfb
SCI: cleanup
...
svn-id: r49573
2010-06-10 13:43:38 +00:00
Filippos Karapetis
711f679b7f
camelCase changes
...
svn-id: r49570
2010-06-10 11:43:20 +00:00
Filippos Karapetis
944b511633
Fixed regression from commit #49564
...
svn-id: r49569
2010-06-10 11:35:15 +00:00
Filippos Karapetis
93f33c7dab
Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, some camelCase changes
...
svn-id: r49568
2010-06-10 11:18:10 +00:00
Filippos Karapetis
a635b94823
Pic port saving/loading is only used in SCI0-SCI11
...
svn-id: r49567
2010-06-10 10:27:13 +00:00
Martin Kiewitz
8a5762c52d
SCI: set picport when loading saved games
...
svn-id: r49565
2010-06-10 10:15:32 +00:00
Filippos Karapetis
cc6f5eb3e4
Unified invokeSelector() and invokeSelectorArgv(), and removed the INV_SEL kludge. Also, removed the selectorInvocation parameter - if invokeSelector() fails, the error is in most cases unrecoverable, and the error description thrown covers all cases where kContinueOnInvalidSelector was used. This uncovered a bug too: in some places, non reg_t parameters were parsed
...
svn-id: r49564
2010-06-10 09:22:30 +00:00
Filippos Karapetis
eb4ec596cd
Use the SELECTOR() macro for readability
...
svn-id: r49563
2010-06-10 09:18:57 +00:00
Filippos Karapetis
0ab7c908bb
Removed the pointer to the game object from the EngineState class
...
svn-id: r49562
2010-06-10 08:11:38 +00:00
Filippos Karapetis
50c1f4e545
Moved the MoveCountType enum above the GameFeatures class, as it's the only class using it
...
svn-id: r49561
2010-06-10 07:48:32 +00:00
Filippos Karapetis
abc5f97608
Fixed compilation with the old music code
...
svn-id: r49560
2010-06-10 07:41:48 +00:00
Filippos Karapetis
9b8e4e8359
Moved all of the game init/run/exit logic inside the SciEngine class
...
svn-id: r49559
2010-06-10 07:32:05 +00:00
Filippos Karapetis
14437e6394
The segment manager is now initialized before the graphics subsystem. Fixes the detection of the fastCast object on startup, and hence fixes LSL1VGA
...
svn-id: r49553
2010-06-09 21:41:20 +00:00
Martin Kiewitz
e533289e07
SCI: document raw lipsync data skipping in readAudioMapSCI11()
...
svn-id: r49550
2010-06-09 20:32:55 +00:00