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

Function readResourceAsync

src/Osako/ResMgr.cpp:722–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720 }
721
722 bool readResourceAsync(void *p1, u32 p2, char *folder, char *fileName, AramAsyncState *state)
723 {
724 if (msFreeArgArray == msUsedArgArray)
725 return false;
726
727 state->_0 = nullptr;
728 msaAramResArg[msFreeArgArray].setAll(p1, p2, folder, fileName, 0, state);
729 state = &msaAramResArg[msFreeArgArray];
730
731 if (System::getAramTask()->request(readAnmResTask, state, nullptr))
732 {
733 msAramTaskNum++;
734 msFreeArgArray++;
735
736 if (msFreeArgArray >= 0x40)
737 msFreeArgArray = 0;
738 return true;
739 }
740
741#line 737
742 JUT_PANIC("task full");
743 return false;
744 }
745
746 void readAnmResTask(void *param)
747 {

Callers

nothing calls this directly

Calls 3

getAramTaskFunction · 0.85
requestMethod · 0.80
setAllMethod · 0.45

Tested by

no test coverage detected