benilla-re systems structs docs

SetSoundDefFiles

function · sound · primitive

Address
0x45be10 · 590 bytes, up to 0x45c05d
Meaning
Fills a definition's file slots from a SoundEntries row, sharing equal names in the string block
Confidence
verified, proof one
Finding
sound/entries#file-paths

Finding: File paths in sound: sound entries and plays

Each file slot's name is DirectoryBase, a separator and File[i], formatted by SStrPrintf with "%s%s%s" into 260 bytes. The separator is \ unless the directory is null, empty, or ends in \. Nothing else is normalized. Slots are filled in order and stop at the first empty file name. A weight below 1 counts as 1. Equal names share one copy in a string block, matched case-insensitively, and the slot keeps a pointer into the block.

The derivation is in the doc.

Callers 1

Callees 11

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