ScummVM API documentation
hpl::cFileSearcher Class Reference

Public Member Functions

 cFileSearcher (LowLevelResources *apLowLevelResources)
 
void AddDirectory (tString asPath, tString asMask)
 
void ClearDirectories ()
 
tString GetFilePath (tString asName)
 

Member Function Documentation

◆ AddDirectory()

void hpl::cFileSearcher::AddDirectory ( tString  asPath,
tString  asMask 
)

Adds a directory that will be searched when looking for files.

Parameters
asMaskWhat files that should be searched for, for example: "*.jpeg".
asPathThe path to the directory.

◆ ClearDirectories()

void hpl::cFileSearcher::ClearDirectories ( )

Clears all directories

◆ GetFilePath()

tString hpl::cFileSearcher::GetFilePath ( tString  asName)

Gets a file pointer and searches through all added resources.

Parameters
asNameName of the file.
Returns
Path to the file. "" if file is not found.

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