benilla-re systems structs docs

s_mapDirectory

global · terrain

Address
0xc91f78 · 256 bytes, up to 0xc92077
Type
char[256]
Meaning
Holds the map's directory, World\Maps\ and the map name
Confidence
verified, proof one
Finding
terrain/files#map-load

Finding: Map load in terrain: files

CMap::Load (0x6941f0) loads the map named in ecx with the map id in edx. It sets the shader flags from the world flags and the shaders' availability, builds the map directory World\Maps\<name>, the name, and the WDT path <dir>\<name>.wdt, makes the map's light object, reads the WDL, reports 0.1 progress, reads the WDT, reports 0.25, runs one map update and loads the map's lights. While it runs, 0x86a2d0 is 1 and tile files are read at once rather than queued.

The derivation is in the doc.