NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
f_arc_load.cpp
1#include <types.h>
2#include <game/framework/f_arc_load.hpp>
3
5 if (mpArcList == nullptr || mStatus == STATUS_UNLOADED) {
6 return;
7 }
8
9 mCount--;
10 while (mCount >= 0) {
11 deleteArc(mpArcList[mCount]);
12 mCount--;
13 }
14}
15
16int fArcLoad_c::arcListLoad(int loadMany) {
17 if (mpArcList == nullptr || mStatus == STATUS_LOADED) {
18 return STATUS_LOADED;
19 }
20
21 while (mpArcList[mCount] != nullptr) {
22 mStatus = loadArc(mpArcList[mCount]);
23 if (mStatus != STATUS_LOADED) break;
24 mCount++;
25 mUnknown = 0;
26 if (loadMany == 0) break;
27 }
28
29 return mStatus;
30}
31
33 if (mStatus == STATUS_LOADING) {
34 mStatus = arcListLoad(0);
35 }
36
37 if (mStatus == STATUS_LOADING) {
38 return false;
39 } else {
40 return true;
41 }
42}
bool checkDelete()
void arcListDelete()
Definition f_arc_load.cpp:4
virtual int loadArc(const char *)
[Stripped out of binary].
int arcListLoad(int loadMany)
virtual void deleteArc(const char *)
[Stripped out of binary].