#include #include "constants.h" #include "bss.h" #include "lib/dma.h" #include "lib/memp.h" #include "data.h" #include "types.h" void texInit(void) { extern u8 _textureslistSegmentRomStart; extern u8 _textureslistSegmentRomEnd; u32 len = ((&_textureslistSegmentRomEnd - &_textureslistSegmentRomStart) + 15) & -16; g_Textures = mempAlloc(len, MEMPOOL_PERMANENT); dmaExec(g_Textures, (u32) &_textureslistSegmentRomStart, len); }