MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getResource

Method getResource

libs/JSystem/JUtility/JUTResource.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7void *JUTResReference::getResource(JSUInputStream *stream, u32 resType, JKRArchive *archive)
8{
9 stream->read(&mType, 1);
10 stream->read(&mNameLength, 1);
11 stream->read(&mName, mNameLength);
12
13 if (mType == RESTYPE_Unk2 || mType == RESTYPE_Unk3 || mType == RESTYPE_Unk4)
14 {
15 mName[mNameLength] = 0;
16 }
17
18 return getResource(resType, archive);
19}
20
21void *JUTResReference::getResource(const void *data, u32 resType, JKRArchive *archive)
22{

Callers 8

BattleName2DMethod · 0.45
LANSelectModeMethod · 0.45
getPtrFunction · 0.45
setupMethod · 0.45
loadTextureMethod · 0.45
getPointerMethod · 0.45
createMethod · 0.45

Calls 2

memcpyFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected