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

Method loadResourceAsync

libs/JSystem/JAudio/System/JASResArcLoader.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43int JASResArcLoader::loadResourceAsync(JKRArchive *arc, u16 id, u8 *buf, u32 bufSize, LoadCallback lCb, u32 lCbArg) {
44 TLoadResInfo resInfo(arc, id, buf, bufSize);
45 resInfo.mCallback = lCb;
46 resInfo.mCallbackArg = lCbArg;
47 int res = JASDvd::getThreadPointer()->sendCmdMsg(loadResourceCallback, &resInfo, sizeof(resInfo));
48 if (res == 0) {
49#line 160
50 JUT_WARNING_F2("%s", "sendCmdMsg loadResourceCallback Failed");
51 }
52 return res;
53}

Callers

nothing calls this directly

Calls 2

getThreadPointerFunction · 0.85
sendCmdMsgMethod · 0.80

Tested by

no test coverage detected