aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
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
2010-06-15SCI: Merge MacResourceForkResourceSource::scanSource and ↵Max Horn
ResourceManager::readMacResourceFork svn-id: r49817
2010-06-15SCI: Add virtual method ResourceSource::scanSourceMax Horn
svn-id: r49816
2010-06-15SCI: Change ResourceManager::getVolume() to use new classesMax Horn
* Add new ResourceSource::findVolume() virtual method * Rename ResourceManager::getVolume() to findVolume(), and change it to use the new ResourceSource method * Add some TODO comments pointing to further OOPification possibilities svn-id: r49815
2010-06-15SCI: Remove 'map' param from addSource, and let AudioVolumeResourceSource ↵Max Horn
subclass VolumeResourceSource svn-id: r49814
2010-06-15SCI: Convert code to use ResourceSource subclassesMax Horn
svn-id: r49813
2010-06-15SCI: Add ResourceSource subclasses, one for each typeMax Horn
svn-id: r49812