MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zMainShowProgressBar

Function zMainShowProgressBar

src/SB/Game/zMain.cpp:601–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599{
600 zSceneMemLvlChkCB();
601}
602
603void zMainShowProgressBar()
604{
605 S32 progBar;
606 char loadingText[12];
607 char auStack_cc[64];
608 char acStack_8c[64];
609 char formattedStr[64];
610
611 if (zMenuIsFirstBoot())
612 {
613 if (percentageDone > 100)
614 {
615 percentageDone = 100;
616 }
617 progBar = percentageDone / 10;
618 strcpy(loadingText, "Loading...");
619 memset(auStack_cc, 0, 64);
620 memset(formattedStr, 0, 64);
621 strcpy(acStack_8c, loadingText);
622 acStack_8c[progBar] = '\0';
623 memcpy(formattedStr, &loadingText[progBar], strlen(loadingText) - progBar);
624 sprintf(auStack_cc, "{font=0}{h*2}{w*2}%s{color=FFFFFFFF}%s{~:c}", acStack_8c,
625 formattedStr);
626 zMainMemCardRenderText(auStack_cc, '\x01');
627 percentageDone += 10;
628 }
629}
630

Callers 2

mainFunction · 0.85
zMainLoopFunction · 0.85

Calls 5

zMenuIsFirstBootFunction · 0.85
memsetFunction · 0.85
memcpyFunction · 0.85
sprintfFunction · 0.85
zMainMemCardRenderTextFunction · 0.85

Tested by

no test coverage detected