Commit graph

136 commits

Author SHA1 Message Date
Filippos Karapetis
a7165c02c1 Removed the hack for kResourceTypeRobot patch files
svn-id: r47730
2010-01-31 00:13:16 +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
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
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
Martin Kiewitz
8ecd76e415 SCI: process robot files again (i need those for REing)
svn-id: r47644
2010-01-28 16:30:46 +00:00
Filippos Karapetis
0b987fe066 Added support for the SCI2.1 resource patches (resmap.pat and ressci.pat). GK2 goes a bit further now (but still dies because of a new script opcode)
svn-id: r47641
2010-01-28 11:19:27 +00:00
Martin Kiewitz
34346bfd33 SCI: fix view detection for sci1.1 pq4demo
svn-id: r47614
2010-01-27 22:55:30 +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
Filippos Karapetis
e81ddfcdcc Removing obsolete comment
svn-id: r47609
2010-01-27 20:55:35 +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
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
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
9861b04b93 SCI: Add driver for Yamaha FB-01. Cleanup.
svn-id: r47571
2010-01-26 19:25:33 +00:00
Martin Kiewitz
36c2243c48 SCI: also test for mapVersion == sci32 for setting viewtype to kViewVga11 - fixes kq7
svn-id: r47568
2010-01-26 15:22:04 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Filippos Karapetis
df149e1509 Separated the parser code
svn-id: r47480
2010-01-23 17:55:54 +00:00
Martin Kiewitz
8ff407e80a SCI: added comment about resource.p01 etc. (including possible TODO)
svn-id: r47364
2010-01-18 23:07:56 +00:00
Martin Kiewitz
3a34628e9e SCI: added comment for merging together resource.p* files, if no volume file could get opened
svn-id: r47363
2010-01-18 23:01:05 +00:00
Martin Kiewitz
7c646fb84b SCI: added warning() when detection fails to detect map and volume version
svn-id: r47349
2010-01-17 22:41:29 +00:00
Martin Kiewitz
055e17b60e SCI: fixed detection to not crash when adding sierras pinball creep, also changed detection so that we dont "accept" games that use unknown view resources (otherwise pinball creep will get detected as SCI)
svn-id: r47348
2010-01-17 22:32:53 +00:00
Walter van Niftrik
bea8d931ff SCI: Add comment to channel mask code
svn-id: r47337
2010-01-17 04:57:21 +00:00
Walter van Niftrik
c7b258f87e SCI: Cleanup
svn-id: r47335
2010-01-17 02:13:40 +00:00
Walter van Niftrik
6caf8e3f89 SCI: Fix rhythm channel handling in SCI0
svn-id: r47326
2010-01-16 19:11:37 +00:00
Filippos Karapetis
22e8b3ed02 The GM patches from Sierra's GM utility can now also be processed with their original names. Thus, the user can just extract the patches from Sierra's GM utility in the extras folder, and it's not necessary to rename each individual file to "4.pat" and place it inside the associated game (works with the games that Sierra's GM patch updates, i.e. LSL1, LSL5, Hoyle3, SQ1, SQ4, Eco1, Longbow and Fairy tales)
svn-id: r47318
2010-01-16 00:22:22 +00:00
Max Horn
8559f0c3eb SCI: Use prefix increment instead of postfix on iterators (more efficient); also correct code formatting issues
svn-id: r47295
2010-01-13 23:58:25 +00:00
Max Horn
a88b2639f5 SCI: empty() checks whether the map is empty... removing useless line of code :)
svn-id: r47294
2010-01-13 23:57:53 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Martin Kiewitz
c371c39568 SCI: changed SoundResource constructor to set values for digitalChannelNr/digitalSampleRate and digitalSampleSize at any time
svn-id: r47220
2010-01-10 11:01:36 +00:00
Walter van Niftrik
6f78bc40dd SCI: Move music device IDs to drivers.
svn-id: r47190
2010-01-09 02:14:12 +00:00
Walter van Niftrik
3dda1c8073 SCI: Fix view detection in Hoyle 2
svn-id: r47154
2010-01-08 13:45:44 +00:00
Martin Kiewitz
72ecf8b61e SCI: add robot/.rbt files to resourcemanager class
svn-id: r47096
2010-01-06 20:54:18 +00:00
Martin Kiewitz
f245917d6f SCI/newmusic: fadeout in sci0 (not stopping music yet), revert of SoundResource changes
svn-id: r46972
2010-01-04 15:17:46 +00:00
Martin Kiewitz
01ebbcf101 SCI: channels[] work, sci0 fading still not working (volume is changed though)
svn-id: r46969
2010-01-04 13:21:35 +00:00
Filippos Karapetis
c0aad0508c Renamed SCI_VERSION_AUTODETECT to SCI_VERSION_NONE to signify its actual purpose
svn-id: r46959
2010-01-03 22:50:39 +00:00
Matthew Hoops
7d5e91337e Fix the GK1 view segfault. szUnpacked was overflowing in SCI32 -- it should be uint32. GK1 now is a bit more playable, with many many glitches.
svn-id: r46917
2010-01-03 04:46:00 +00:00
Matthew Hoops
6ba2bd8bfc Add support for wave files in the audio volume. This is used in Pharkas CD and GK1 CD.
svn-id: r46916
2010-01-03 03:37:50 +00:00
Filippos Karapetis
a927cff256 SCI/new sound code: disabled some unused code and named a previously unknown variable of the sound channel data
svn-id: r46872
2010-01-02 01:40:10 +00:00
Matthew Hoops
fedd4f1076 Fix regression in SCI1/1.1 wave sound from r46660. I knew it was a bad omen to have that revision number :P
svn-id: r46664
2009-12-27 23:35:22 +00:00
Matthew Hoops
86306e1e4d wCompressed is still a uint16 in SCI32, so correct the vol version detection.
svn-id: r46661
2009-12-27 22:41:33 +00:00
Matthew Hoops
420ab43066 Add support for external wave files used as audio resources in the ResourceManager. The GK1 CD main menu music now works.
svn-id: r46660
2009-12-27 22:34:12 +00:00
Martin Kiewitz
f01a6c9adf SCI/newmusic: moving commented assert
svn-id: r46632
2009-12-27 12:38:19 +00:00
Martin Kiewitz
fb237cd7ae SCI/newmusic: now playing sample data for sci0 games (this also fixes sq3 amiga freezing during pot exit)
svn-id: r46631
2009-12-27 12:33:47 +00:00
Martin Kiewitz
e6ad7523c8 SCI/newmusic: now adding digital sample data as separate channel for sci0 games (not yet playing)
svn-id: r46629
2009-12-27 12:17:43 +00:00
Filippos Karapetis
6536432b30 Changed some comments
svn-id: r46624
2009-12-27 11:56:51 +00:00
Filippos Karapetis
e939054637 Silenced a chatty console debug message
svn-id: r46612
2009-12-27 02:55:39 +00:00
Martin Kiewitz
46eb68090c SCI/newmusic: Added comments about sound resource headers
svn-id: r46567
2009-12-25 22:58:45 +00:00
Matthew Hoops
ff00963a8b Silence a bunch of gcc warnings (and Merry Christmas, if you celebrate).
svn-id: r46565
2009-12-25 21:54:31 +00:00
Martin Kiewitz
9255d43a16 SCI/newmusic: Change to channel filtering for sci0early to reflect actual sierra driver behaviour
svn-id: r46564
2009-12-25 21:51:02 +00:00