TextureBlpUpdate
function · gx · orchestration
- Address
0x448840· 222 bytes, up to0x44891d- Signature
void __fastcall (uint32_t arg1, uint32_t arg2, uint32_t mode, uint32_t width, uint32_t level, void *texture, uint32_t *pitch, void **bits)- Meaning
- Serves a file texture's update calls: loads the BLP mips, returns a level's pitch and pointer, or drops them
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-file-creation
Finding: Texture file creation in gx: textures
0x449610(path, format, loose) opens path split by 0x449590 with .blp (0x83524c) appended through SFile::OpenEx(0, name, loose != 0, &handle) (storm/mount#loose-files), returns 0 on failure, else allocates a CTexture, sets bit 0x2 of +0x110 for loose, copies the name, stores format at +0x118 and 0 at +0x120, and takes an async record from 0x4438b0: record +0 the file, +8 its size, +0xc the texture, +0x10 the completion callback 0x4497f0. When the file's size fits in what remains of 2 MiB (counter 0xb05d18) the record's buffer is the next slice of the static area at 0x905be4 and 0x443ae0 queues the read; otherwise the record joins the waiting list. 0x44a310 does the same for a name with its extension, callback 0x44a500.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- 0x419e20 client
- DebugPrintStub unassigned
- TextureFillMipsWhite gx
- TextureDecodeBlp gx
Calls and jumps by a bare address, from tables/calls.tsv.