TextureSetBasenameSubstitution
function · gx · orchestration
- Address
0x44b4e0· 13 bytes, up to0x44b4ec- Signature
void __fastcall (const char *from, const char *to)- Meaning
- Stores the BLP file name to replace and the name that replaces it
- 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
- OnViolenceLevelChanged client
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.