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

Function zMainLoop

src/SB/Game/zMain.cpp:629–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void zMainLoop()
630{
631 iTime time;
632 S64 t;
633 U32* preinit;
634 RpAtomic* modl;
635 //RpAtomic* modl;
636 //RpAtomic* modl;
637 U32 newGameSceneID;
638 U32 iconDataSize;
639 void* iconData;
640 U32 gameSceneID;
641 U32 menuModeID;
642 //int8 @5697;
643 U32 preinit_bubble_matfx[6];
644 U32 preinit_shiny_models[8];
645 U32 preinit_ADC_models[10];
646
647 zMainShowProgressBar();
648 xMemPushBase();
649 time = iTimeGet();
650 xUtil_idtag2string('BOOT', 0);
651 iTimeDiffSec(time);
652 xSTPreLoadScene('BOOT', NULL, 0x1);
653 time = iTimeGet();
654 xUtil_idtag2string('BOOT', 0);
655 iTimeDiffSec(time);
656 xSTQueueSceneAssets('BOOT', 1);
657 time = iTimeGet();
658 xUtil_idtag2string('BOOT', 0);
659 iTimeDiffSec(time);
660
661 do
662 {
663 } while (xSTLoadStep('BOOT') < 1.0f);
664
665 xSTDisconnect('BOOT', 1);
666 time = iTimeGet();
667 xUtil_idtag2string('BOOT', 0);
668 iTimeDiffSec(time);
669 zMainShowProgressBar();
670 xSTPreLoadScene('PLAT', 0, 1);
671 xSTQueueSceneAssets('PLAT', 1);
672
673 do
674 {
675 } while (xSTLoadStep('PLAT') < 1.0f);
676
677 xSTDisconnect('PLAT', 1);
678 zMainShowProgressBar();
679 iTimeGet();
680 xShadowSimple_Init();
681 globals.pickupTable = (zAssetPickupTable*)xSTFindAssetByType('PICK', 0, 0);
682 // globals.pickupTable = zPickupTableInit();
683 // zPickupTableInit hasnt been implemented yet
684 xMemPushBase();
685 time = iTimeGet();
686 xUtil_idtag2string('MNU4', 0);

Callers 1

mainFunction · 0.70

Calls 13

zMainShowProgressBarFunction · 0.85
xMemPushBaseFunction · 0.85
iTimeDiffSecFunction · 0.85
xModelInitFunction · 0.85
iTimeGetFunction · 0.50
xUtil_idtag2stringFunction · 0.50
xSTPreLoadSceneFunction · 0.50
xSTQueueSceneAssetsFunction · 0.50
xSTLoadStepFunction · 0.50
xSTDisconnectFunction · 0.50
xShadowSimple_InitFunction · 0.50
xSTFindAssetByTypeFunction · 0.50

Tested by

no test coverage detected