aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
2010-08-07SCI: Changed a warning into a debugCFilippos Karapetis
svn-id: r51820
2010-08-03SCI: Hopefully fix signedness warning with some compilersMatthew Hoops
svn-id: r51699
2010-08-03SCI: Add support for SCI2.1 chunk resourcesMatthew Hoops
And if no scripts are present, but chunk 0 is present, load resources from there. This fixes the Lighthouse SCI2.1 demo. svn-id: r51696
2010-08-02SCI: Fix leaks in ResourceManager::listResources caller code.Johannes Schickel
svn-id: r51666
2010-08-02SCI: Cleanup SCI0 late version detectionMatthew Hoops
After discussing with Walter, we should be able to detect SCI0 late on the presence of a SCI0 vocab.999 without checking if we're using the old decompressors. svn-id: r51644
2010-08-02SCI: Fix bug #3037055: Jones in the Fast Lane EGA - fails to startMatthew Hoops
A regression of r51423. Jones EGA has a non-parser related vocab.900 resource, so we can't detect the fan games based on not having an SCI1 vocab.900 resource. Fan games are now detected on whether or not vocab.0 exists (the parser vocab for SCI0). svn-id: r51619
2010-07-28SCI: Fix bug #3035737 - SCI Fan Games: Incorrect Version DetectionMatthew Hoops
If we have a vocab 900 resource with the new decompressors, it can also be SCI0 late. If there is no parser vocab (with new decompressors), it is SCI1 early. svn-id: r51423
2010-07-25Fixed LSL6 hires resources, speech and lip sync work now (thanks to a ↵Filippos Karapetis
discussion we had with clone2727) svn-id: r51287
2010-07-20SCI: Fixed an off-by-one error in the resource manager - it tried to load ↵Filippos Karapetis
patches of type kResourceTypeInvalid svn-id: r51075
2010-07-18Cleanup and simplify resource type remapping.Matthew Hoops
svn-id: r50975
2010-07-18In SCI2.1, the type numbers inside resource maps/patches have changed ↵Matthew Hoops
slightly. We no longer use the number Sierra gives us directly, but use a function to convert to our ResourceType enum based on version. This allows us to read the chunk type from SCI2.1 (a form of script). Also, allow debugging of Mac-specific resources from the console. svn-id: r50973
2010-07-17Add support for the altres.map/altres.000 map/volume pair in KQ7.Matthew Hoops
svn-id: r50968
2010-07-16SCI: adding fixme and error() to fix crash when trying to run unmodified gk2Martin Kiewitz
svn-id: r50939
2010-06-25SCI: detect, if SCI1.1 game is merging or copying palette instead of using ↵Martin Kiewitz
gameIds. Also prints method used, when using debug command "version" svn-id: r50261
2010-06-20Cleaner fix for the QFG4 demo audio map problem.Matthew Hoops
svn-id: r50104
2010-06-20Ignore the broken 65535x.map file in the QFG4 demo, mistakenly picked up ↵Matthew Hoops
when checking for patches. Audio now works there. svn-id: r50102
2010-06-19SCI: changing error to warning in ResMan::detectViewType()Martin Kiewitz
svn-id: r50067
2010-06-18SCI: not using views coming from patch files anymore for detecting view typeMartin Kiewitz
svn-id: r50027
2010-06-18Don't throw a warning when we can't find hires contentFilippos Karapetis
svn-id: r50015
2010-06-18SCI: Unbreak diskdump console command, maybe othersLars Skovlund
svn-id: r50014
2010-06-18SCI: changing error to warning inside detectHires() for gk1 to work again...Martin Kiewitz
svn-id: r50008
2010-06-18SCI: reverting #49978, it worked correctly. the new values contain the full ↵Martin Kiewitz
height/width of the picture (may be much larger cause of scrollable areas) and we actually don't want that. the values before and now contain the height/width of the on-screen picture size - although this may contain 0, 0 for low-res games, but that's fine then svn-id: r50006
2010-06-18Fixed a bug in detectHires(), so that it actually worksFilippos Karapetis
svn-id: r49978
2010-06-17Renamed error -> errorNum to avoid name clashes with error()Filippos Karapetis
svn-id: r49974
2010-06-17Strict mode: Turned several severe errors (almost all detection related) ↵Filippos Karapetis
into errors, instead of warnings svn-id: r49972
2010-06-16SCI: Avoid using g_sci in resman (as it might not yet be inited)Max Horn
svn-id: r49897
2010-06-15SCI: Pass resman to scanSource() methodsMax Horn
svn-id: r49863
2010-06-15SCI: Add Resource::getNumber methodMax Horn
svn-id: r49848
2010-06-15Fix spelling, cleanupMax Horn
svn-id: r49843
2010-06-15SCI: Make Resource::_id protectedMax Horn
svn-id: r49842
2010-06-15SCI: OOpify class ResourceIdMax Horn
svn-id: r49841
2010-06-15SCI: Add ResourceManager::getVolVersion()Max Horn
svn-id: r49840
2010-06-15Reduce header dependenciesMax Horn
svn-id: r49836
2010-06-15SCI: Move decompress & readResourceInfo to Resource; more cleanupMax Horn
svn-id: r49835
2010-06-15SCI: cleanupMax Horn
svn-id: r49834
2010-06-15SCI: Move several methods from ResourceManager to ResourceMax Horn
svn-id: r49833
2010-06-15SCI: Add ResourceManager::updateResource(); change some code to use ↵Max Horn
addResource() svn-id: r49832
2010-06-15SCI: Move _associatedMap to VolumeResourceSource and make it constMax Horn
svn-id: r49831
2010-06-15SCI: Move _audioCompression(Type|OffsetMapping) to AudioVolumeResourceSourceMax Horn
svn-id: r49830
2010-06-15SCI: cleanupMax Horn
svn-id: r49829
2010-06-15SCI: Get rid of ugly resMan params to ResourceSource methodsMax Horn
We might want to add a ResourceSource::_resMan member, but for now I am not adding one on purpose; many more things might still move between ResourceSource and ResourceManager, so we should wait till the refactoring is complete. svn-id: r49828
2010-06-15SCI: Merge ResourceManager::checkIfAudioVolumeIsCompressed into ↵Max Horn
AudioVolumeResourceSource constructor svn-id: r49827
2010-06-15SCI: Make ResourceSource::_resourceFile constMax Horn
svn-id: r49826
2010-06-15SCI: Revise how ResourceManager is instantiated.Max Horn
This should allow for better error handling. Also, it means that g_sci->getResMan() returns a valid value much sooner, allowing me to simplify some code. Also added a note about potentially replacing Common::FSList usage by Common::Archive (and FSNode by Archive/ArchiveMember ?). This might be a way to unify the addAppropriateSources variants again. svn-id: r49825
2010-06-15SCI: Rename ResourceSource members to follow _camelCase conventionMax Horn
svn-id: r49823
2010-06-15SCI: Pass volume number to ResourceSource subclass constructors; make ↵Max Horn
ResourceSource::volume_number const svn-id: r49822
2010-06-15SCI: Add loadResource impls for WaveResourceSource and AudioVolumeResourceSourceMax Horn
svn-id: r49821
2010-06-15SCI: Add loadResource impls to MacResourceForkResourceSource and ↵Max Horn
PatchResourceSource; move _macResMan to MacResourceForkResourceSource svn-id: r49820
2010-06-15SCI: Move code from ResourceManager::loadResource to ↵Max Horn
ResourceSource::loadResource svn-id: r49819
2010-06-15SCI: Rename ResourceSource::resourceFile to _resourceFileMax Horn
svn-id: r49818