mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-06 03:28:11 -04:00
20 lines
448 B
C
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);
|
|
}
|