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