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

Function loadCourseData

src/Osako/ResMgr.cpp:572–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570 }
571
572 void loadCourseData(ECourseID courseID, CourseOrder courseOrder)
573 {
574 msCourseID = courseID;
575 msCourseOrder = courseOrder;
576
577 // Bug: compares courseOrder with msMountCourseID instead of msMountCourseOrder
578 if (msMountCourseID == courseID && msMountCourseID == courseOrder && msMountCourseID != LUIGI_CIRCUIT)
579 return;
580
581 mspCourseHeap->freeAll();
582 msLoadFlag &= ~8;
583 mspaLoader[mcArcCourse] = nullptr;
584
585 if (!SYSTEM_RequestTask(loadCourseTask, nullptr, nullptr))
586 {
587#line 536
588 JUT_PANIC("task full");
589 }
590 }
591
592 void loadAwardData(ERaceGpCup cupId, JKRHeap *heap)
593 {

Callers 3

waitEntryMethod · 0.85
decideMethod · 0.85
decideMethod · 0.85

Calls 1

freeAllMethod · 0.45

Tested by

no test coverage detected