Commit Graph

36736 Commits

Author SHA1 Message Date
Max Horn
f85c77d63e Fix warning when using -Wuninitialized
svn-id: r47633
2010-01-28 09:37:50 +00:00
Johannes Schickel
23f9891749 Fix MP3 playback speed.
svn-id: r47632
2010-01-28 09:15:58 +00:00
Filippos Karapetis
6fd8f7c015 Always try and load the associated digital track if the requested MIDI track couldn't be found
svn-id: r47631
2010-01-28 08:23:40 +00:00
Filippos Karapetis
1e6123ce89 Improved the diskdump command so that it also writes the resource header, if it exists (e.g. in SOL audio files)
svn-id: r47630
2010-01-28 08:17:46 +00:00
Torbjörn Andersson
9a85b1284b Silenced some more cppcheck style warnings.
svn-id: r47628
2010-01-28 05:20:52 +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
da7d221d40 Introduced a new console command, diskdump, which is able to dump files from resource files to disk
svn-id: r47623
2010-01-28 01:45:20 +00:00
Travis Howell
0702bdab82 Fix regressions in Let's Explore the Jungle with Buzzy.
svn-id: r47622
2010-01-28 00:28:08 +00:00
Travis Howell
ca7d670b4b Fix regression in Let's Explore the Jungle with Buzzy.
svn-id: r47621
2010-01-28 00:24:02 +00:00
Travis Howell
f81735fffc Fix regression in Let's Explore the Jungle with Buzzy.
svn-id: r47619
2010-01-28 00:15:53 +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
Arnaud Boutonné
705910f122 - Fixed openWin, saveWin, restoreWin, closeWin, winMove and activeWin, so that windows are AT LEAST working
- Suppressed dirty traces. This has to be reviewed/rewritten. It looks better without.
- Add initialization of two variables in one exceptional case in winDraw. (Thanks Cyx)

svn-id: r47616
2010-01-27 23:39:16 +00:00
Filippos Karapetis
08006eef1e Made the code inside SciGui::display() a bit more readable
svn-id: r47615
2010-01-27 22:56:00 +00:00
Martin Kiewitz
34346bfd33 SCI: fix view detection for sci1.1 pq4demo
svn-id: r47614
2010-01-27 22:55:30 +00:00
Martin Kiewitz
dfae4f7e99 SCI: fix for clipping code inside kGraph
svn-id: r47613
2010-01-27 22:53:09 +00:00
Matthew Hoops
898135b7d0 SearchMan.listMatchingMembers does not return files in alphabetical order, so we can't rely on the order of the lists. Rework the SCI2.1+ loading code to iterate through both lists in nested loops to fix multi-archive SCI2.1 games (such as GK2).
svn-id: r47612
2010-01-27 21: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
Filippos Karapetis
76ff84a62f Fixed the demo version of Longbow - speech was not played at all with the new sound code
svn-id: r47610
2010-01-27 21:11:24 +00:00
Filippos Karapetis
e81ddfcdcc Removing obsolete comment
svn-id: r47609
2010-01-27 20:55:35 +00:00
Martin Kiewitz
00413a0b04 SCI: also change exit to quit in help
svn-id: r47608
2010-01-27 20:06:07 +00:00
Martin Kiewitz
f376572ed8 SCI: renamed exit console command to quit, so that systemwide "exit" works (exits console instead of quitting game)
svn-id: r47607
2010-01-27 20:03:45 +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
Martin Kiewitz
a45af3457a SCI: removing duplicate comment line that isnt right there (it documents the other view format)
svn-id: r47605
2010-01-27 18:11:49 +00:00
Filippos Karapetis
8ff7efea81 Do not try and patch files for resource types greater or equal to audio36 (i.e. audio36, sync36 etc), as these won't work with the current patch scheme
svn-id: r47604
2010-01-27 17:31:11 +00:00
Filippos Karapetis
9471e66940 Don't patch audio36 resources, when the associated patches are for audio resources (e.g. the sound effects in LB2CD)
svn-id: r47603
2010-01-27 16:59:20 +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
1ddcd178c2 The two unknown fields point to the beginning and end of the sound sample
svn-id: r47601
2010-01-27 16:04:46 +00:00
Filippos Karapetis
0f0e123e5a Turned the asserts about the unknown sound field into a warning
svn-id: r47600
2010-01-27 15:06:47 +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
Travis Howell
0b4b3da4e4 Fix sound regression in HE games.
svn-id: r47596
2010-01-27 12:20:01 +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
Martin Kiewitz
f27c8284a5 SCI: scaling for non-regular cels, scaling for reanimate (fixes pharkas demo, fixes lb2 cd credit windows)
svn-id: r47594
2010-01-27 11:18:05 +00:00
Johannes Schickel
7e1051d8ec Fix seeking in FLAC implementation (FLAC's API uses the number of sample pairs, not the number of samples).
svn-id: r47593
2010-01-27 08:41:08 +00:00
Filippos Karapetis
8606982590 Moved the Shorten decoder inside the SAGA engine, as it's the only one using it (and it's still unfinished, too)
svn-id: r47592
2010-01-27 08:40:48 +00:00
Johannes Schickel
812603e29e Fix invalid sample position on Timestamp to sample conversion for Stereo streams.
svn-id: r47591
2010-01-27 08:08:33 +00:00
Matthew Hoops
9f2a619c06 SCI2.1 and onwards uses the 'new' DPCM8 which differs only by order. This fixes sound in the GK2 demo slideshow. Also, fix a logic bug with endianness in the DPCM decoders.
svn-id: r47590
2010-01-27 05:10:38 +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
Matthew Hoops
eabbe89971 Improve support for the SCI2.1/SCI3 file naming scheme. Multiple maps can be used and have to be matched up with their volume counterparts. Adding detection for the Phantasmagoria Demo too.
svn-id: r47588
2010-01-27 04:26:28 +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
Matthew Hoops
d4f08cbe81 Correct our interpretation of the first four bytes of the RSRC section in Mohawk archives.
svn-id: r47583
2010-01-26 23:05:52 +00:00
Max Horn
77fe0215cd Remove outdated comments
svn-id: r47582
2010-01-26 22:52:08 +00:00
Max Horn
ff783e4bb7 AGOS: Turn BaseSound into a subclass of Common::NonCopyable
svn-id: r47581
2010-01-26 22:51:40 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +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
Martin Kiewitz
935ded3615 SCI: force palette merging for kq6 hires portraits (cause its needed on those)
svn-id: r47577
2010-01-26 22:34:17 +00:00
Filippos Karapetis
46a05ce332 Fixed loading of old saved games
svn-id: r47576
2010-01-26 22:04:33 +00:00