Public Member Functions | |
Resource (Common::Platform platform, bool isDemo) | |
Common::List< ResourceIndex > | searchIndex (Common::String filename) |
Common::MemoryReadStreamEndian * | loadFile (Common::String filename, int fileIndex=0, bool errorOnNotFound=true) |
Common::MemoryReadStreamEndian * | loadBitmapFile (Common::String baseName) |
Common::MemoryReadStreamEndian * | loadFileWithParams (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 |
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.
Common::String StarTrek::Resource::getLoadedText | ( | int | textIndex | ) |
".txt" files are just lists of strings. This traverses the file to get a particular string index.