MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SpriteFile

Method SpriteFile

src/spriteloader/sprite_file.cpp:46–51  ·  view source on GitHub ↗

* Create the SpriteFile. * @param filename Name of the file at the disk. * @param subdir The sub directory to search this file in. * @param palette_remap Whether a palette remap needs to be performed for this file. */

Source from the content-addressed store, hash-verified

44 * @param palette_remap Whether a palette remap needs to be performed for this file.
45 */
46SpriteFile::SpriteFile(const std::string &filename, Subdirectory subdir, bool palette_remap)
47 : RandomAccessFile(filename, subdir), palette_remap(palette_remap)
48{
49 this->container_version = GetGRFContainerVersion(*this);
50 this->content_begin = this->GetPos();
51}

Callers

nothing calls this directly

Calls 2

GetGRFContainerVersionFunction · 0.85
GetPosMethod · 0.80

Tested by

no test coverage detected