benilla-re systems structs docs

s_textTextureFailureDecompression

global · gx

Address
0x8356ac · 45 bytes, up to 0x8356d8
Type
char[45]
Meaning
Holds the format "Texture failure: \"%s\" decompression failed.\n" of a refused BLP decode
Confidence
verified, proof one
Finding
gx/texturesize#blp-load-order

Finding: BLP load order in gx: texture sizes and formats

0x44a560 decides which BLP level becomes level 0 of a file texture, in this order: it parses the header (0x5a83b0); it halves the width and height with 0x448b60, which leaves dropped at +0x114; it picks the type code and format with 0x44a790; it decodes the chain from file level dropped with 0x5a8430; and it asks 0x448450 for a device texture of the size after the drop. A failure at any step returns 0 and 0x44a500 substitutes the solid texture. File level dropped is level 0 of the chain. dropped starts at the constructor's 0 (0x44820b) and 0x448b60 adds to it, so within this function only the device limit raises it.

The derivation is in the doc.