benilla-re systems structs docs

TextureCreateFromTga

function · gx · orchestration

Address
0x44a140 · 277 bytes, up to 0x44a254
Signature
void * __fastcall (const char *path, uint32_t fileFlag, uint32_t flags, void *log)
Meaning
Loads a TGA at once and creates a one-level format 2 texture whose callback 0x44a260 supplies the pixels
Confidence
verified, proof one
Finding
gx/textures#texture-name-candidates

Finding: Texture name candidates in gx: textures

0x449d90 appends .tga (index 0) or .blp (index 1) at the split point from the table 0x835248 and loads <buffer> through 0x44a140 (TGA) or 0x44a310 (BLP), starting at the index 0x449590 returned and trying the other once. A name with no three-byte extension, or .blp or any other extension, goes .blp first; only .tga goes .tga first. A kept long extension stays in front of the candidate. The base name and its slashes reach Storm as written; only the stripped three bytes were lowered, and they are gone. Both loaders return 0 without writing to log when the open fails.

namefirstsecond
X, X.blp, X.bmpX.blpX.tga
X.tgaX.tgaX.blp
X.jpegX.jpeg.blpX.jpeg.tga

The derivation is in the doc.

Callers 1

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.