benilla-re systems structs docs

CutAtLastDot

function · gx · orchestration

Address
0x449580 · 15 bytes, up to 0x44958e
Signature
void __fastcall (char *name)
Meaning
Writes 0 over a name's last dot when it has one
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 1

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