Torch
Loading...
Searching...
No Matches
BK64::BKAssetInfo Struct Reference

#include <BKAssetFactory.h>

Public Attributes

uint32_t offset
int16_t compressionFlag
int16_t tFlag
int32_t assetMode
int32_t index

Detailed Description

One asset-table entry: where an asset lives and what it is.

Fields:

  • offset: ROM address or file offset (BKZIP compressed if compressionFlag != 0)
  • compressionFlag: 0 = uncompressed, 1 = BKZIP compressed, 2 = MIO0, 3 = YAY0
  • tFlag: Type discriminator (0=model, 1=sprite, 2=animation, etc.)
  • assetMode: Loading mode (0=immediate, 1=deferred, 2=cached)
  • index: Original asset index in source data (debugging aid)

How a lookup flows: getModel3d(0x2d5) → assetTable[0x2d5] → offset=0x1A2400, compression=1 -> Decompressor::BKZIP(ROM + 0x1A2400) → ModelFactory::parse()


The documentation for this struct was generated from the following file: