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

Method getResource

libs/JSystem/JParticle/JPAResourceManager.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33JPAResource *JPAResourceManager::getResource(u16 idx) const
34{
35 for (u16 res_idx = 0; res_idx < resRegNum; res_idx++)
36 {
37 JPAResource *res = pResAry[res_idx];
38 if (idx == res->getUsrIdx())
39 return res;
40 }
41
42 return nullptr;
43}
44
45bool JPAResourceManager::checkUserIndexDuplication(u16) const
46{

Callers 1

createSimpleEmitterIDMethod · 0.45

Calls 1

getUsrIdxMethod · 0.80

Tested by

no test coverage detected