| 599 | } |
| 600 | |
| 601 | void 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 | |
| 629 | void zMainLoop() |
| 630 | { |
no test coverage detected