aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
AgeCommit message (Collapse)Author
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
2010-06-15SCI: Changed some 'const char *' to Common::StringMax Horn
svn-id: r49811
2010-06-15SCI: Change ResourceSource to a class, further OOPify it.Max Horn
In particular, renamed location_name to _name and made it const and protected. Thus it cannot be changed after creation, and only read access is now possible, via a getter method. svn-id: r49810
2010-06-15SCI: Only use MacResManager if needed; start to OOPify ResourceSourceMax Horn
svn-id: r49809
2010-06-15SCI: Move ResourceSource to new header resource_intern.hMax Horn
svn-id: r49807
2010-06-13Added a default constructor for the ResourceSource structFilippos Karapetis
svn-id: r49622
2010-06-12Initialize compression-related variables when loading external patch files. ↵Filippos Karapetis
Fixes Cassima's speech in the intro of KQ6 (the engine thought that the external patch files of her speech were compressed) svn-id: r49606
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