benilla-re systems structs docs

s_areaReadLock

global · terrain

Address
0xce8270 · 24 bytes, up to 0xce8287
Type
uint8_t[24]
Meaning
Holds the critical section around ADT reads and parses
Confidence
inferred
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.