benilla-re systems structs docs

AddMacroIconFromBasePath

function · ui · primitive

Address
0x4f0350 · 402 bytes, up to 0x4f04e1
Meaning
Adds a base-path file's basename when it names a Spell_ or Ability_ icon
Confidence
verified, proof one
Finding
ui/macros#macro-icons

Finding: Macro icons in ui: macros

GetNumMacroIcons builds the list on first use and returns its size. GetMacroIconInfo(index) returns the icon directory plus the stored basename for a 1-based index and the empty string, not nil, for an index outside the list; it never builds. The list is the sorted, deduplicated (without case) union of the extension-stripped names of: every (listfile) line of the patch archives and interface.MPQ that starts with Interface\Icons\ and whose name starts with Ability_ or Spell_ and ends .blp or .tga; the loose files of the base path's Interface\Icons\ with the same name rule (a .bz suffix removed first); and the loose .blp and .tga files of a working-directory Interface\Icons\, any name. The spell icon table is not a source.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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