Files
perfect-dark/src/game/texinit.c
T
2022-03-23 21:22:06 +10:00

20 lines
448 B
C

#include <ultra64.h>
#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);
}