FormatTgaMipPattern
function · gx · orchestration
- Address
0x449550· 40 bytes, up to0x449577- Signature
void __fastcall (const char *name, char *buffer)- Meaning
- Copies a name, cuts it at its last dot and appends _mip%d.tga
- Confidence
- verified, proof one
- Finding
- gx/textures#tga-mip-file-names
Finding: TGA mip file names in gx: textures
A TGA texture's lower levels come from files beside it: 0x449550(name, buffer) copies the name
into a 260-byte buffer, cuts it at its last ., and appends _mip%d.tga, so Foo.tga gives the
pattern Foo_mip%d.tga and a name with no dot gets the suffix at its end. The TGA decoder passes
the pattern on to 0x4493a0. 0x4490c0, which nothing live reaches, decodes a file as TGA or BLP by
its extension, tries the other decoder when the first fails, and, when both fail and it was given an
error sink, reports Error loading texure file "%s": unsupported image format to it with the code 3.
The derivation is in the doc.
Callers 1
Callees 3
- CutAtLastDot gx
- SStrCopy storm
- SStrPack storm
Calls and jumps by a bare address, from tables/calls.tsv.