ReadAreaFile
function · terrain · host
- Address
0x6c1e70· 252 bytes, up to0x6c1f6b- Signature
void __thiscall (void *this, const char *path)- Meaning
- Reads an ADT whole, at once during a map load and otherwise as a queued read
- Confidence
- verified, proof one
- Finding
- terrain/files#tile-file-read
Finding: Tile file read in terrain: files
0x6c1e70(path) opens the ADT, takes its size into +0x67c and a buffer of that size into
+0x678, and reads the whole file. During a map load it reads and parses at once under the
critical section 0xce8270; otherwise it queues an asynchronous read of the whole file whose
completion, 0x6c21f0, parses it, releases the request and closes the file. The pending request
is kept in the WDT entry's second dword.
The derivation is in the doc.
Callers 1
- LoadArea terrain
Callees 10
- 0x4438b0 client
- 0x443ae0 client
- SFile::Close storm
- SFile::GetFileSize storm
- SCritSect::Enter storm
- SCritSect::Leave storm
- CMap::SafeOpen terrain
- CMap::SafeRead terrain
- AllocAreaBuffer terrain
- ParseAreaFile terrain
Calls and jumps by a bare address, from tables/calls.tsv.