ReadAddOnURLText
function · ui · primitive
- Address
0x51d500· 123 bytes, up to0x51d57a- Signature
void __fastcall (const char *path, char **url)- Meaning
- Loads a .url file and stores a copy of the text after its first = with trailing CR, LF and spaces cut
- Confidence
- verified, proof two
- Finding
- ui/addons#reading-the-url-file
- Test
ui::addon_url_parse_difftest
Finding: Reading the URL file in ui: add-ons
0x51d500(path, &url) (ecx the path, edx the out slot) loads the file Interface\AddOns\<name>\<name>.url
that 0x51d4c0 names, with one extra zero byte, and stores a copy of the text after its first =
without the trailing CR, LF and space bytes. The file is read as a C string, so a NUL ends it. A file
that does not load, or has no = before its first NUL, leaves the slot unwritten. A = as the last
byte gives an empty string. The file is freed and the return value goes unread.
The derivation is in the doc.
Callers 1
- ReadAddOnURL ui
Callees 5
- SFile::Load storm
- SFile::Unload storm
- SStrChr2 storm
- SStrDupA storm
- SStrLen storm
Calls and jumps by a bare address, from tables/calls.tsv.