ScummVM API documentation
Sword25::ResourceManager Class Reference

Public Member Functions

ResourcerequestResource (const Common::String &fileName)
 
bool registerResourceService (ResourceService *pService)
 
void emptyCache ()
 
void emptyThumbnailCache ()
 
void dumpLockedResources ()
 

Member Function Documentation

◆ requestResource()

Resource* Sword25::ResourceManager::requestResource ( const Common::String fileName)

Returns a requested resource. If any error occurs, returns NULL

Parameters
FileNameFilename of resource

◆ registerResourceService()

bool Sword25::ResourceManager::registerResourceService ( ResourceService pService)

Registers a RegisterResourceService. This method is the constructor of BS_ResourceService, and thus helps all resource services in the ResourceManager list

Parameters
pServiceWhich service

◆ emptyCache()

void Sword25::ResourceManager::emptyCache ( )

Releases all resources that are not locked.

◆ emptyThumbnailCache()

void Sword25::ResourceManager::emptyThumbnailCache ( )

Removes all the savegame thumbnails from the cache

◆ dumpLockedResources()

void Sword25::ResourceManager::dumpLockedResources ( )

Writes the names of all currently locked resources to the log file


The documentation for this class was generated from the following file: