#include <resource_patcher.h>
Public Member Functions | |
ResourcePatcher (const SciGameId gameId, const bool isCD, const Common::Platform platform, const Common::Language gameLanguage) | |
bool | applyPatch (Resource &resource) const |
void | scanSource (ResourceManager *resMan) override |
void | loadResource (ResourceManager *resMan, Resource *res) override |
![]() | |
ResSourceType | getSourceType () const |
const Common::Path & | getLocationName () const |
Common::SeekableReadStream * | getVolumeFile (ResourceManager *resMan, Resource *res) |
virtual ResourceSource * | findVolume (ResourceSource *map, int volNum) |
virtual uint32 | getAudioCompressionType () const |
Additional Inherited Members | |
![]() | |
bool | _scanned |
const Common::FSNode *const | _resourceFile |
const int | _volumeNumber |
![]() | |
ResourceSource (ResSourceType type, const Common::Path &name, int volNum=0, const Common::FSNode *resFile=0) | |
![]() | |
const ResSourceType | _sourceType |
const Common::Path | _name |
A basic class for generating patched resource data at runtime.
bool Sci::ResourcePatcher::applyPatch | ( | Resource & | resource | ) | const |
Finds and applies a patch to the given resource.
|
overridevirtual |
Adds new resources from the patch table to the resource manager. This is needed since otherwise tests for these resources via kResCheck
would fail, and so they would never actually be loaded.
Reimplemented from Sci::ResourceSource.
|
inlineoverridevirtual |
Load a resource. Since resources using this source are patched explicitly after they get loaded by any other resource source, this method does nothing.
Reimplemented from Sci::ResourceSource.