DecodeImageFile
function · gx · unreached
- Address
0x4490c0· 291 bytes, up to0x4491e2- Meaning
- Decodes an image file as TGA or BLP by its extension, trying the other on failure and reporting both failing
- 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
- 0x4499d0 gx
Callees 5
- TextureDecodeBlp gx
- TextureDecodeTga gx
- TextureSplitExtension gx
- SStrCopy storm
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.