benilla-re systems structs docs

TextureCreateFromBlp

function · gx · orchestration

Address
0x44a310 · 495 bytes, up to 0x44a4fe
Signature
void * __fastcall (const char *path, uint32_t fileFlag, uint32_t flags, void *log)
Meaning
Opens a BLP name with its extension, queues the async read and returns an HTEXTURE handle with flags stored
Confidence
verified, proof one
Finding
gx/textures#texture-basename-substitution

Finding: Texture basename substitution in gx: textures

0x44a310 replaces the file name of a BLP path before it opens it. When [0x905bd4] is non-null and the part of the path after its last backslash equals that string ignoring case, the part is replaced by [0x905bd8] in a 0x104-byte copy and the copy is opened. The compared part is the candidate with its .blp. 0x44b4e0(from = ecx, to = edx) stores the two pointers. The violence-level handler 0x6c5af0 calls it: at level 2 with both 0, so nothing is replaced; at level 0 or 1 with BloodSpurtSmall01.blp ([0x86c420]) and BloodSpurtSmall01_Low.blp or BloodSpurtSmall01_Medium.blp ([0x86c418] and [0x86c41c]).

The derivation is in the doc.

Callers 1

Callees 10

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