benilla-re systems structs docs

SStrChrRCopy

function · storm · boundary

Address
0x64a450 · 43 bytes, up to 0x64a47a
Signature
char * __fastcall (const char *string, char c)
Meaning
Returns the last occurrence of a character in a string, or 0 (a second copy of 0x64a420)
Confidence
verified, proof one
Name from
the community database (idb)
Finding
gx/textures#texture-file-name-builders

Finding: Texture file name builders in gx: textures

Callers that build a texture file name themselves do not all split it. 0x449610 splits the name with 0x449590 and then always appends .blp, so Foo.tga opens Foo.blp. 0x44b320(name, buffer, type, size) copies the name, cuts it at its last dot of any length (at the end when it has none), and appends .BLP for type 1 and returns 2, or .TGA for type 2 and returns 1; type 0 returns 0 with the copy uncut, and another type returns itself with the cut and no suffix. The builders that format a name append .blp to whatever they are given, with no split: a name ending in .tga gives <name>.tga.blp.

The derivation is in the doc.

Callers 26

Callees 1

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