38295 Commits

Author SHA1 Message Date
Yotam Barnoy
ff66c67439 PSP: fixed SCI freeze issue by using recursive mutexes
svn-id: r49682
2010-06-15 06:30:49 +00:00
Yotam Barnoy
25c7dc08b1 PSP: fixed bug in hardware MP3 that caused crash in broken sword. The sample rate must be returned from our member variable, not from the header value which disappears.
svn-id: r49680
2010-06-15 05:34:37 +00:00
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
22e9fe8291 Since allNotesOff() is virtual and can be overriden, make its associated variables protected instead of private
svn-id: r49672
2010-06-14 22:31:38 +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
1c3e96ac12 Split out Mohawk detection tables into separate file.
svn-id: r49658
2010-06-14 14:52:49 +00:00
Eugene Sandulenko
6916e547a3 AGOS: Fix bug #1777795.
Bug #1777795: "SIMON1: Acorn CD MD5s" fixed by specifying directory
depth for AdvancedDetector to 2.

svn-id: r49657
2010-06-14 14:52:13 +00:00
Eugene Sandulenko
ca161920a4 SCUMM: Fix bug #1438631.
Bug #1438631: "SCUMM: Detecting mac version of indy3/loom broken"
fixed by implementing recursive directory lookup similar to what
was done for AdvancedDetector, since SCUMM engine does not use it.

svn-id: r49656
2010-06-14 14:51:46 +00:00
Eugene Sandulenko
e281f2599a Implement safeguard for negative depth values in AdvancedDetector.
svn-id: r49655
2010-06-14 14:51:18 +00:00
Eugene Sandulenko
d59c312b08 Mohawk: Added support for running Riven off DVD layout.
Uses new directory depth feature of AdvancedDetector.
Set directory depth to 2 and added Assets1/ directory.
As a result, DVD layout which does not have any game data
file in top level directory gets detected and runs well.

svn-id: r49654
2010-06-14 14:50:53 +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
John Willis
b921cebce8 GP2XWiz: Add shellscripts to support building a non-stripped bundle for use with GDB.
* This should help Tony (GSoC) get debug builds going.

svn-id: r49648
2010-06-14 09:33:36 +00:00
Filippos Karapetis
cfdbfaa28e SCI: Limit the screen refresh rate to 60fps
svn-id: r49647
2010-06-14 08:36:52 +00:00
Paul Gilbert
58487da20b Moved the actionNouns array from the scene to the globals object, since the scene will no longer be active during animation sequences
svn-id: r49646
2010-06-14 06:33:24 +00:00
Paul Gilbert
6fb462e6b0 Further memory leak fixes reported by Valgrind
svn-id: r49644
2010-06-14 05:27:54 +00:00
Paul Gilbert
466a151744 Fixes for memory leaks reported by Valgrind
svn-id: r49643
2010-06-14 04:20:57 +00:00
Paul Gilbert
ae0a7a6675 Added logic for animation sequences specifying a starting animation frame number
svn-id: r49642
2010-06-14 03:15:58 +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
Paul Gilbert
4c6d276ce9 Bugfixes for correct moving of the screen viewport within an animation
svn-id: r49629
2010-06-13 10:50:54 +00:00
Nicola Mettifogo
466479eb77 Added a parser for kZoneNone zones/animations in BRA.
The only thing it does is parsing a possible command list, which is enough to support the script bug in "scende2". See ticket #3005384.

svn-id: r49628
2010-06-13 09:07:15 +00:00
Paul Gilbert
02ed880180 Added logic for handling the rate of animation background scrolling, and miscellaneous extra fields
svn-id: r49627
2010-06-13 08:53:06 +00:00
Nicola Mettifogo
d199377388 When closing inventory, do not force input back to game-mode if commands need otherwise.
svn-id: r49623
2010-06-13 07:35:48 +00:00
Filippos Karapetis
eff1d4bb1c Added a default constructor for the ResourceSource struct
svn-id: r49622
2010-06-13 07:17:44 +00:00
Nicola Mettifogo
94cdfefe1c Fixed clipping when drawing sprites at small scale factors (this fixes the balloon scene).
svn-id: r49621
2010-06-13 06:56:13 +00:00
Nicola Mettifogo
d16eb491b1 Support for vertical scrolling. Patch 3005933 by fuzzie.
svn-id: r49620
2010-06-13 06:55:58 +00:00
Nicola Mettifogo
3cacd7bc43 Keep the balloon from getting stuck in an infinite loop when floating near the borders of the screen.
See the detailed explanation in walk.cpp.

svn-id: r49619
2010-06-13 06:55:40 +00:00
Nicola Mettifogo
0659d5f244 Improved debug output of BRA walk code.
svn-id: r49618
2010-06-13 06:55:24 +00:00
Paul Gilbert
2625c9b20b Applied fix for checking unallocated channels for All Notes Off MIDI command
svn-id: r49613
2010-06-12 23:53:26 +00:00
Filippos Karapetis
0492bd6aa6 SAGA: Music code cleanup. The music driver is now placed inside the MusicPlayer class, instead of the SagaEngine class. Split the functionality that the music parser should handle from the functionality that the music driver should handle. Also, fixed a bug in MusicDriver::send() (the notes off signal was sent to unallocated channels, not allocated ones)
svn-id: r49607
2010-06-12 18:20:22 +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
Paul Gilbert
277a700e67 Reimplemented the scaled sprite drawing logic. The first introduction sequence scene now displays correctly
svn-id: r49604
2010-06-12 11:32:28 +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
Paul Gilbert
e572267a05 Bugfixes to correctly scroll the background during animations
svn-id: r49596
2010-06-11 11:08:37 +00:00
Paul Gilbert
ef34896dce Clarified various incorrectly named parameters, and fixed code for loading the correct art file backgrounds when running animation sequences
svn-id: r49595
2010-06-11 11:03:51 +00:00
Angus Lees
580c9032f0 Add support for setFocusRectangle - enabled on 'small' Android screens.
svn-id: r49594
2010-06-11 10:54:49 +00:00