SLogClose
function · storm · host
- Address
0x659ec0· 76 bytes, up to0x659f0b- Signature
void __stdcall (uint32_t log)- Meaning
- Flushes and closes a log's file, unlinks its record and releases it
- Confidence
- verified, proof one
- Finding
- storm/log#closing-a-log
Finding: Closing a log in storm: text logs
SLogClose(id) (0x659ec0) does nothing until Storm's locks exist (s_stormLocksReady, 0xc5a170). It finds the
record with LockLog (0x659f70, create 0), which on a hit returns it with its bucket's lock held. A record with an
open file first runs FlushLog (0x659f10): buffered bytes go out with WriteFile, then FlushFileBuffers, and the
buffer empties. The file is then closed with CloseHandle. 0x65a060 unlinks the record from its bucket chain,
releases its 0x10124 bytes with VirtualFree and leaves the lock. The caller's own id word is not zeroed; the chat
teardown zeroes its words itself.
The derivation is in the doc.
Callers 14
- 0x41bf70 base
- 0x429a60 unassigned
- 0x438d90 os
- CGlueMgr::Resume glue
- DeleteLogStatus glue
- CGGameUI::Initialize ui
- ShutdownChat ui
- 0x595dd0 gx
- 0x65a4b0 storm
- ConsoleDumpTextureStats terrain
- ConsoleOpenWorldLog terrain
- LcdInitialize ui
- StatusLogDestruct ui
- Sound::Shutdown sound
Callees 3
- FlushLog storm
- LockLog storm
- ReleaseLogRecord storm
Calls and jumps by a bare address, from tables/calls.tsv.