303 Commits

Author SHA1 Message Date
md5
9e1245c420 SCI: Fixed version and scene transitions for SCI1 Mac games 2011-03-13 23:50:40 +02:00
md5
4ddc66d68e SCI: Initial handling of the views in Longbow Amiga. Still not right 2011-03-07 13:23:52 +02:00
md5
dbd3f440d2 SCI: Added some support code for Longbow Amiga 2011-03-05 18:47:13 +02:00
md5
ef939772b3 SCI: Added support for 16/32 color view and picture patches
16 color patches (*.p16 and *.v16) are used in 16 color EGA SCI1 games
32 color patches (*.p32 and *.v32) are used in 32 color Amiga SCI1 games
Removed a workaround for SCI1 EGA (bug #3044500), as that bug has been
fixed already in the view patch. Thanks to waltervn for observing this.
2011-03-04 17:16:54 +02:00
md5
6b41673fab SCI: Amiga SCI1 middle games are actually SCI1 late
This fixes a lot of glitches, caused by the differences between the two
versions
2011-03-04 14:27:25 +02:00
md5
72f65b3946 SCI: Renamed SCI_VERSION_1_EGA to SCI_VERSION_1_EGA_ONLY
This renaming allows us to better distinguish that this version is for games
that only had an EGA version, and avoid confusion with newer SCI1 game releases
with EGA graphics (e.g. KQ5 EGA). The only game with this SCI version is QFG2,
a SCI1 EGA game with a parser. Also, added some games for each SCI version.
2011-02-27 16:48:53 +02:00
Matthew Hoops
fe250d2755 SCI: Don't error out when a Mac resource has size 0 2011-02-20 12:44:59 -05:00
md5
7cf482e721 SCI: Reverted r914fe95, and silenced a false positive warning 2011-02-19 20:30:57 +02:00
md5
914fe95903 SCI: Added a FIXME for the KQ5 FM-TOWNS resource handling code 2011-02-19 20:22:44 +02:00
Matthew Hoops
758e495872 SCI: Add support for the KQ5 FM Towns resource format
Thanks to alexbevi for providing details on the format
2011-02-16 14:24:38 -05:00
Matthew Hoops
fad3e64550 SCI: Fix GK2 Mac picture 2315
It hardcodes the picture so it doesn't get run with the decompressor
2011-02-13 18:00:39 -05:00
Filippos Karapetis
e4b46bd159 SCI: Added resource manager support for changing the audio directory dynamically. Also,
moved some audio-specific resource code inside resource_audio.cpp

This functionality is used by kSetLanguage(), called when switching the language in
MUMG Deluxe from the game's main menu.

svn-id: r55872
2011-02-10 16:48:29 +00:00
Filippos Karapetis
c7c0198e27 SCI: Renamed addInternalSources -> addAudioSources and separated the script chunk loading code
svn-id: r55866
2011-02-10 12:57:43 +00:00
Filippos Karapetis
d915560f44 SCI: Moved some audio resource code to resource_audio.cpp
svn-id: r55865
2011-02-10 12:40:48 +00:00
Matthew Hoops
aac6bd5181 SCI: Improve speed of Mac resource fork sources
svn-id: r55859
2011-02-09 17:54:34 +00:00
Matthew Hoops
0bf787736c SCI: Fix Mac SCI32 subdirectories
svn-id: r55783
2011-02-05 08:27:33 +00:00
Matthew Hoops
a08fa00d49 SCI: Fix detectHires() for Mac SCI32 games
svn-id: r55781
2011-02-05 08:18:03 +00:00
Matthew Hoops
496ca9a669 SCI: Fix KQ6 Mac audio resources
A regression from r55715

svn-id: r55751
2011-02-03 12:42:52 +00:00
Matthew Hoops
3c04db1ebf SCI: Set Mac cursors as a non-compressable type too
svn-id: r55720
2011-02-02 15:21:24 +00:00
Matthew Hoops
a6891a4372 SCI: Fix Mac sync resource support
svn-id: r55716
2011-02-02 02:20:25 +00:00
Matthew Hoops
1e14752d4d SCI: Add support for Mac audio36/sync36 resources in resource forks
svn-id: r55715
2011-02-02 00:23:46 +00:00
Matthew Hoops
26f5523156 SCI: Mac SCI1.1+ games can use SYNC as the resource type for sync resources too
svn-id: r55708
2011-02-01 15:17:39 +00:00
Matthew Hoops
956dc54e3d SCI: Update the Mac version detection comments
svn-id: r55697
2011-01-31 23:09:22 +00:00
Matthew Hoops
4c8a9ab24a SCI: Add support for Mac SCI1.1+ resource compression
Mac SCI1.1+ games should now start up. QFG1 and Hoyle4 are playable. GK1 starts its scripts, but errors out soon after. There are still some View bugs with each (somehow, view decompression seems to be adding a blank line after each line?).

*Much* thanks to Walter for his help.

svn-id: r55696
2011-01-31 22:45:51 +00:00
David Turner
f2205a5a01 SCI: Close Memory Leaks in SCI Resource Loading, reported by Valgrind.
svn-id: r54916
2010-12-14 23:30:22 +00:00
Johannes Schickel
c14399c229 SCI: Slight formatting fix.
svn-id: r54737
2010-12-02 17:03:21 +00:00
Lars Skovlund
0ac28d1fbf Disable error message regarding RESOURCE.AUD/.SFX for now.
svn-id: r54735
2010-12-02 13:29:49 +00:00
Filippos Karapetis
a702ad5123 SCI3: added a SCI3 implementation of findGameObject(), based on a patch by lskovlun
svn-id: r54284
2010-11-17 11:17:38 +00:00
Filippos Karapetis
f44b084deb SCI: Some restructuring. Added some SCI3 placeholders/stubs
svn-id: r54280
2010-11-17 08:53:02 +00:00
Filippos Karapetis
0470e47145 SCI: The heap was a separate resource in SCI1.1 - SCI2.1 games only. It was later
merged into the script files again in SCI3

svn-id: r54279
2010-11-17 08:30:08 +00:00
Matthew Hoops
405fd0b5eb SCI: Update resource types for SCI2.1/3
svn-id: r54220
2010-11-13 00:20:23 +00:00
Filippos Karapetis
ee85ca0007 SCI: Properly adding SCI3 script patches (a regression of r54211)
svn-id: r54213
2010-11-11 23:46:53 +00:00
Filippos Karapetis
a65ab98726 SCI: Use the new CSC extension for SCI3 scripts
svn-id: r54211
2010-11-11 19:38:32 +00:00
Filippos Karapetis
9d1006c7a3 SCI3: Some changes
- Placed the SCI3 version detection in the proper place
- Some new types of SCI3 MT-32 patches (e.g. in the Lighthouse SCI3 demo) are
ignored, for now

svn-id: r54188
2010-11-10 14:28:45 +00:00
Matthew Hoops
988d9f3401 SCI: Fix SCI2.1+ fallback detection
Each map has to be mapped with its own specific volume (as opposed to earlier versions that had one map for all volumes); this code was passing the same map pointer for all volumes.

svn-id: r54179
2010-11-10 03:34:08 +00:00
Filippos Karapetis
1a85ce8e03 SCI: Some slight work on SCI3
- Enabled the SCI3 game entries for testing purposes
- The resource manager is initialized fully now (with a slight hack)
- Added a hack for the demo of Shivers 2 (which seemingly has no
scripts or vocabularies)
- The engine will stop before parsing any game scripts in SCI3 games,
and opens the console for resource manager-related functionality

svn-id: r54167
2010-11-09 19:37:42 +00:00
Filippos Karapetis
55f0b88c07 SCI: Fixed the fallback detector again
This is a regression from r54155, as we previously ignored the result of 
addInternalSources() in the fallback detector

svn-id: r54163
2010-11-09 17:07:34 +00:00
Matthew Hoops
4582a94ff9 SCI: Fix Lighthouse SCI2.1 demo
This is a regression from r54155. Fixed by moving the chunk resource loading earlier.

svn-id: r54162
2010-11-09 16:56:31 +00:00
Matthew Hoops
567441f032 SCI: Formatting convention fixes
svn-id: r54161
2010-11-09 16:23:08 +00:00
Lars Skovlund
9a0b6ad69a SCI: Add resource manager support for SCI3 games.
ScummVM now rejects them properly instead of spewing lots of
unintelligible stuff. 

svn-id: r54155
2010-11-09 14:25:39 +00:00
Filippos Karapetis
7d71d07075 SCI: Renamed findBlock() to findBlockSCI0()
svn-id: r54077
2010-11-04 23:19:23 +00:00
Max Horn
ba3e826872 SCI: Remove any use of printf
svn-id: r54037
2010-11-02 09:49:47 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
3df411df66 MOTOEZX: Fix warning about static not at beginning of declaration
svn-id: r53981
2010-10-31 17:23:53 +00:00
Max Horn
484bf9c269 ALL: Fixup some #define names
svn-id: r52935
2010-09-28 20:30:50 +00:00
Filippos Karapetis
928bcdbe09 SCI: Some changes to the fallback detector (sync with branch 1.2.0)
Added more graceful handling of the case where SCI32 isn't built in and the
user tries to detect or start a SCI32 game

svn-id: r52789
2010-09-18 09:47:18 +00:00
Filippos Karapetis
4e27844fef SCI: Some changes regarding resources
- Renamed the debug command "resource_size" to "resource_info", as it now provides
the location of where a specified resource is found (i.e. the resource.xxx file, or
the file name itself, if the resource is a patch)
- "duskdump" shows the original location of dumped resources
- loadResource() now shows the location of files that couldn't be loaded

svn-id: r52667
2010-09-10 14:07:32 +00:00
Martin Kiewitz
afada2b60d SCI: fixing comment
svn-id: r52517
2010-09-04 09:58:37 +00:00
Martin Kiewitz
89d4e44281 SCI: doing detectDoSoundType() properly sci0early
checking, if sound resources are sci0early or late for sci0early games instead of hardcoding lsl2

svn-id: r52514
2010-09-04 08:51:10 +00:00
Martin Kiewitz
ff24ae66fb SCI: removing debug output from r52259
svn-id: r52263
2010-08-21 14:53:14 +00:00