SStrChrR
function · storm · boundary
- Address
0x64a420· 43 bytes, up to0x64a44a- Signature
char * __fastcall (const char *string, char c)- Meaning
- Returns the last occurrence of a character in a string, or 0
- 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 20
- 0x42b430 unassigned
- IsValidFileName unassigned
- TextureCreateFromBlp gx
- TextureDiscoverFileType gx
- SetSoundDefFiles sound
- AddMacroIconFromListfile ui
- AddMacroIconFromBasePath ui
- AddMacroIconFromWorkingDir ui
- RegisterArchiveAddOn ui
- 0x614340 objectlayer
- SFile::OpenEx storm
- SFileResolveOpen storm
- 0x648180 storm
- SFileOpenArchiveShim storm
- EnumerateArchiveListfile storm
- 0x654e90 storm
- SFileOpenFileInArchives storm
- LoadTocFile ui
- LoadFrameXMLFile ui
- 0x6f1270 unassigned
Callees 1
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.