Files
perfect_dark/src/game/texinit.c
T
fgsfds da94644c38 port: make it link and load
nothing happens after loading though
2023-07-29 23:21:35 +02:00

20 lines
490 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 EXT_SEG _textureslistSegmentRomStart;
extern u8 EXT_SEG _textureslistSegmentRomEnd;
u32 len = ((REF_SEG _textureslistSegmentRomEnd - REF_SEG _textureslistSegmentRomStart) + 15) & -16;
g_Textures = mempAlloc(len, MEMPOOL_PERMANENT);
dmaExec(g_Textures, (romptr_t) REF_SEG _textureslistSegmentRomStart, len);
}