SFile::LoadByName
function · storm · boundary
- Address
0x6485f0· 36 bytes, up to0x648613- Signature
uint32_t __stdcall (const char *name, void **buffer, uint32_t *size, uint32_t extra, void *overlapped)- Meaning
- Calls SFile::Load with no archive and open flags 0
- Confidence
- verified, proof two
- Finding
- storm/format#loading-a-whole-file
Finding: Loading a whole file in storm: the archive format
SFile::Load(archive, name, &buffer, &size, extra, flags, overlapped) opens the file with
SFile::OpenEx(archive, name, flags), allocates its size plus extra bytes, reads the whole file,
zeroes the extra bytes after it, and stores the buffer and, when asked, the size. A failed open
returns 0; a failed read frees the buffer, closes the file and returns 0. The file is closed unless
overlapped is given, in which case it is marked at +0x58 and left open. 0x6485f0(name, &buffer, &size, extra, overlapped) is SFile::Load with no archive and flags 0.
The derivation is in the doc.
Callers 6
- 0x41b520 base
- 0x41ba60 base
- ProfileReadFile unassigned
- LoadMd5Catalog minimap
- SetLcdTextFont ui
- LoadMovieSubtitles ui
Callees 1
- SFile::Load storm
Calls and jumps by a bare address, from tables/calls.tsv.