TextureSplitExtension
function · gx · primitive
- Address
0x449590· 126 bytes, up to0x44960d- Signature
uint32_t __fastcall (const char *name, char *copy, char **ext)- Meaning
- Copies the name and strips a dot four bytes from the end, returning 0 for tga and 1 otherwise
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-name-split
Finding: Texture name split in gx: textures
0x449590(name, buffer, &split) copies the name into the 0x104-byte buffer (SStrCopy, at most 0x103 bytes) and sets split to the dot when the byte four from the end is ., else to the end of the copy; a copy shorter than four bytes has no dot. At a dot it lowercases the three bytes after it (0x64b480, _strlwr), writes 0 over the dot, and returns 0 when they are tga and 1 for every other three bytes, blp included. With no dot at that place it returns 1 and strips nothing: Foo.jpeg keeps its extension, Foo has none. The extension is not checked beyond its length: Foo.bmp becomes Foo.
The derivation is in the doc.
Callers 4
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.