SLogCreate
function · storm · orchestration
- Address
0x65a0c0· 217 bytes, up to0x65a198- Signature
bool __stdcall (const char *name, uint32_t flags, uint32_t *log)- Meaning
- Makes a log record for a path and flags, opening the file at once only with flag 1
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- storm/log#opening-a-log-file
Finding: Opening a log file in storm: text logs
SLogCreate(name, flags, &id) keeps the path and the flags and opens nothing unless flag bit 0 is
set; flag bit 1 replaces the name with an empty string and clears bit 0. A record whose handle is −1
opens its file before its first line is written, through 0x65a1c0(path, &handle, flags): a null or
empty path stores −1 and fails; otherwise the path's folders are made and CreateFileA opens it for
writing, shared for reading and writing, as OPEN_ALWAYS at the end of the file when flag bit 2 is
set and as CREATE_ALWAYS, emptied, when it is clear. A failed open clears the path's first byte, so
the record never tries again.
The derivation is in the doc.
Callers 12
- 0x41bf70 base
- 0x429a60 unassigned
- 0x438b70 os
- CGlueMgr::Resume glue
- Script::LoadAddOn ui
- CGGameUI::Initialize ui
- SetLoggingFlag ui
- OpenGxLogFile gx
- ConsoleDumpTextureStats terrain
- ConsoleOpenWorldLog terrain
- LcdInitialize ui
- Sound::Initialize sound
Callees 5
- SStrCopy storm
- SErrSetLastError storm
- LockLog storm
- UnlockLog storm
- CreateLogFile storm
Calls and jumps by a bare address, from tables/calls.tsv.