CMap::Load
function · terrain · orchestration
- Address
0x6941f0· 677 bytes, up to0x694494- Signature
void __fastcall (const char *name, uint32_t mapId)- Meaning
- Loads a map: shader flags, paths, the map light, the WDL, the WDT and the first update
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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.
Callers 1
- CWorld::LoadMap terrain
Callees 15
- AsyncFileReadWaitAll client
- GxShaderIsLoaded gx
- SStrCopy storm
- SStrPrintf storm
- CMap::LoadWdl terrain
- CMap::LoadWdt terrain
- CMap::Update terrain
- DestroyFootprints terrain
- MapObjReleaseAll models
- MapObjWalkTiles models
- CreateMapLight terrain
- PlaceMapLight terrain
- CMapLight::Enable terrain
- InitSky lighting
- M2LightSetType models
Calls and jumps by a bare address, from tables/calls.tsv.