22 #ifndef SCI_RESOURCE_RESOURCE_INTERN_H 23 #define SCI_RESOURCE_RESOURCE_INTERN_H 25 #include "sci/resource/resource.h" 56 const int _volumeNumber;
64 const Common::Path &getLocationName()
const {
return _name; }
89 virtual uint32 getAudioCompressionType()
const {
return 0; }
120 if (_associatedMap == map && _volumeNumber == volNum)
152 uint32 _audioCompressionType;
160 uint32 getAudioCompressionType()
const override;
162 bool relocateMapOffset(uint32 &offset, uint32 &size)
const {
163 if (_audioCompressionType == 0) {
167 if (!_compressedOffsets.
contains(offset)) {
172 offset = entry.offset;
209 bool isCompressableResource(ResourceType type)
const;
220 ChunkResourceSource(
const Common::Path &name, uint16 number);
225 uint16 getNumber()
const {
return _number; }
230 struct ResourceEntry {
242 #endif // SCI_RESOURCE_RESOURCE_INTERN_H Definition: macresman.h:125
SCI1.1 and later audio resource maps.
Definition: resource_intern.h:38
Non-audio resource maps.
Definition: resource_intern.h:37
Val & getVal(const Key &key)
Definition: hashmap.h:633
Built-in resource patcher.
Definition: resource_intern.h:44
virtual ResourceSource * findVolume(ResourceSource *map, int volNum)
Definition: resource_intern.h:72
Definition: resource_intern.h:92
ResourceSource * findVolume(ResourceSource *map, int volNum) override
Definition: resource_intern.h:119
ResSourceType
Definition: resource_intern.h:33
Directories containing game resources/patches.
Definition: resource_intern.h:34
Definition: resource_intern.h:106
Definition: resource.h:327
Definition: resource_intern.h:178
Definition: resource_intern.h:99
External WAVE files, patched in as sound resources.
Definition: resource_intern.h:41
Definition: resource_intern.h:197
Definition: resource_intern.h:135
Definition: resource_intern.h:126
Mac SCI1.1 and later resource forks.
Definition: resource_intern.h:42
Definition: algorithm.h:29
Definition: resource.h:256
virtual void scanSource(ResourceManager *resMan)
Definition: resource_intern.h:79
bool contains(const Key &key) const
Definition: hashmap.h:594
Definition: resource_intern.h:145
Definition: resource_intern.h:187
Game resources (resource.* or ressci.*)
Definition: resource_intern.h:36
External resource patches.
Definition: resource_intern.h:35
Definition: resource_intern.h:48
Script chunk resources (*.chk)
Definition: resource_intern.h:43
Audio resources - resource.sfx / resource.aud.
Definition: resource_intern.h:39
SCI1 audio resource maps.
Definition: resource_intern.h:40
Definition: resource_intern.h:147