ScummVM API documentation
StarTrek::Resource Class Reference

Public Member Functions

 Resource (Common::Platform platform, bool isDemo)
 
Common::List< ResourceIndexsearchIndex (Common::String filename)
 
Common::MemoryReadStreamEndianloadFile (Common::String filename, int fileIndex=0, bool errorOnNotFound=true)
 
Common::MemoryReadStreamEndianloadBitmapFile (Common::String baseName)
 
Common::MemoryReadStreamEndianloadFileWithParams (Common::String filename, bool unk1, bool unk2, bool unk3)
 
Common::String getLoadedText (int textIndex)
 
void setTxtFileName (Common::String txtFileName)
 

Public Attributes

Common::List< ResourceIndex_resources
 

Member Function Documentation

◆ loadFileWithParams()

Common::MemoryReadStreamEndian* StarTrek::Resource::loadFileWithParams ( Common::String  filename,
bool  unk1,
bool  unk2,
bool  unk3 
)

TODO: Figure out what the extra parameters are, and if they're important.

◆ getLoadedText()

Common::String StarTrek::Resource::getLoadedText ( int  textIndex)

".txt" files are just lists of strings. This traverses the file to get a particular string index.


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