aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
2010-06-10Add support for AIFF sound in SCI32 Mac games and add support for AIFF/WAVE ↵Matthew Hoops
audio36 patches; minor cleanup. svn-id: r49576
2010-06-08SCI: check for SOL header in audio36 patchesMartin Kiewitz
svn-id: r49520
2010-06-08Fixed compilation when the SCI32 code is disabledFilippos Karapetis
svn-id: r49514
2010-06-08SCI: use base36 sync/audio patches for sci1.1 as well and also check if ↵Martin Kiewitz
patch filenames make sense, otherwise skip them - also remove hack for excluding bootdisk.* and aud*.drv svn-id: r49509
2010-06-08Add a version check for base36 encoded patches - they were introduced in SCI2Filippos Karapetis
svn-id: r49501
2010-06-07SCI: slight cleanup on processPatch, etc.Martin Kiewitz
svn-id: r49495
2010-06-07SCI: fix regression from #49484, we were ignoring 65535 patches and this ↵Martin Kiewitz
broke kq6 - the check was previously for -1 and this case wasn't able to happen at all, maybe it was left-over code from freesci somehow svn-id: r49494
2010-06-07Added support for SCI2+ base36 encoded patches (audio36 and sync36)Filippos Karapetis
svn-id: r49491
2010-06-07Fix gcc warning about an comparison which is always false due to data type ↵Johannes Schickel
range. svn-id: r49484
2010-06-07Allow for the other audio36 patch naming schemes (Mac and some Torin ones).Matthew Hoops
svn-id: r49482
2010-06-07Some initial code for audio36 and sync36 patch supportFilippos Karapetis
svn-id: r49477
2010-06-06Now opening all files via getVolumeFile()Filippos Karapetis
svn-id: r49451
2010-06-05Rewrote the remaining parts of the ResourceManager class to work with file ↵Filippos Karapetis
streams, thus removing the SCI_detection hack in the fallback detector svn-id: r49438
2010-06-02- Fixed findGameObject() to properly handle SCI0-SCI1 games where the first ↵Filippos Karapetis
block of script 0 isn't the exports block - Changed many places where Common::File is used directly to use Common::SeekableReadStream instead (in order to ultimately remove the SCI_detection hack in the fallback detector) svn-id: r49391
2010-06-02If we can't find the game object or game ID in fallback detection, break out ↵Matthew Hoops
instead of assuming the script is there. Fixes a segfault when detecting an LSCI game. svn-id: r49389
2010-06-02Fix warningMax Horn
svn-id: r49386
2010-06-01Fixed the detection of SCI2.1 games in the fallback detectorFilippos Karapetis
svn-id: r49382
2010-06-01Add support for SCI2.1 resource patches to the fallback detectorFilippos Karapetis
svn-id: r49380
2010-05-30Moved setScriptSize() inside Script::init(), and removed a FIXME - the ↵Filippos Karapetis
SCI1.1 word-align is done inside Script::init() svn-id: r49330
2010-05-30Fixed findGameObject() for SCI11 gamesFilippos Karapetis
svn-id: r49326
2010-05-29Removed the hack inside findGameObject(), and replaced it with code from the ↵Filippos Karapetis
segment manager, till we find out why the segment is sometimes off by 1 (note that findGameObject() works fine for finding the game ID itself) svn-id: r49310
2010-05-29Fixed regression in SCI2-SCI21 games from commit 49308Filippos Karapetis
svn-id: r49309
2010-05-29Added a method to the resource manager, to limit the places where script ↵Filippos Karapetis
exports are accessed, since for SCI11 and newer exports can be functions and objects (first step in removing scriptRelocateExportsSci11(), which is a gross hack and it fails in QFG1VGA) svn-id: r49308
2010-05-27Added an explanation for audio36 and sync36 external patchesFilippos Karapetis
svn-id: r49262
2010-05-27Split all of the audio-related functions of the resource manager in a ↵Filippos Karapetis
separate file svn-id: r49260
2010-05-27Slight formatting, and added a note that audio36 and sync36 resource patches ↵Filippos Karapetis
were introduced in SCI2, and didn't exist in SCI0-SCI1.1 svn-id: r49259
2010-05-27Add the Mac sync resource type and allow for more than 9 Mac SCI1.1+ data files.Matthew Hoops
svn-id: r49255
2010-05-26SCI: Simplify appending string 'seeker' to sierraIdMax Horn
svn-id: r49244
2010-05-26Avoid adding a null char in the sierraId Common::StringFilippos Karapetis
svn-id: r49234
2010-05-26CleanupFilippos Karapetis
svn-id: r49227
2010-05-24Add support for showing the icon bar in SCI1.1 Mac.Matthew Hoops
svn-id: r49196
2010-05-23Cleaned up the game ID code:Filippos Karapetis
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID - Moved the code which reads the internal Sierra ID inside the resource manager - Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code svn-id: r49152
2010-05-18Add initial support for KQ6 Mac. Wrapper functions for read/writing to ↵Matthew Hoops
pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression. svn-id: r49070
2010-05-13Remove useless const on a value return type.Johannes Schickel
svn-id: r49022
2010-05-10Add support for loading SCI games from Mac resource forks. The games ↵Matthew Hoops
themselves do not work yet as some (not all) of the data is in BE order instead of LE. They currently error out because it thinks the relocation block is outside of the script. svn-id: r48998
2010-05-03SCI: calculate sampleLen for WAVEs as wellMartin Kiewitz
svn-id: r48906
2010-05-02SCI: make audio decompression (mp3/ogg/flac) work on BE devicesMartin Kiewitz
svn-id: r48889
2010-05-01SCI: fix sync resources not loading correctly when compressed (mp3/ogg/flac) ↵Martin Kiewitz
audio resource file was used svn-id: r48881
2010-05-01SCI: fix bugs in audio decompression (mp3, ogg, flac)Martin Kiewitz
svn-id: r48880
2010-04-29Silence gcc warnings.Matthew Hoops
svn-id: r48858
2010-04-29SCI: remove unneeded #includes from resource.cppMartin Kiewitz
svn-id: r48857
2010-04-29SCI: audio compression supportMartin Kiewitz
svn-id: r48856
2010-04-24SCI: first byte of resource patch must have 0x80 added to the resource type, ↵Martin Kiewitz
otherwise sierra sci0+ interpreter won't accept the file, fixing this on debug export function svn-id: r48780
2010-04-17SCI: key presses of extended chars (umlauts, etc.) will now get ignored in ↵Martin Kiewitz
games that don't support them (which is all non-multilingual games) svn-id: r48693
2010-02-17SCI: Reduce header interdependenciesMax Horn
svn-id: r48086
2010-02-17SCI: Rename some members of class ResourceMax Horn
svn-id: r48085
2010-02-17SCI: Cleanup resource.hMax Horn
svn-id: r48084
2010-02-13SCI: Change getSciVersionDesc() to return 'const char *' instead of ↵Max Horn
'Common::String' svn-id: r48044
2010-02-03SCI: we checked first cel size when detecting hires instead of actual ↵Martin Kiewitz
picture resolution, now checking correctly svn-id: r47865
2010-02-01SCI: When removing audio resources from the resource manager, also remove ↵Walter van Niftrik
them from the LRU list. svn-id: r47789