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

Function main

src/SB/Game/zMain.cpp:45–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43static void zLedgeAdjust(zLedgeGrabParams* params);
44void zMainMemCardRenderText(const char*, bool);
45void RenderText(const char*, bool);
46
47void main(S32 argc, char** argv)
48{
49 U32 options;
50 S32 i;
51 char* tmpStr;
52
53 memset(&globals, 0, 0x1fc8);
54 globals.firstStartPressed = TRUE;
55 iSystemInit(FALSE); // 0x6d2
56 zMainOutputMgrSetup();
57 xMemRegisterBaseNotifyFunc(zMainMemLvlChkCB);
58 zMainInitGlobals();
59 var_init();
60 zAssetStartup();
61 zMainLoadFontHIP();
62 xfont::init();
63 zMainFirstScreen(1);
64 zMainShowProgressBar();
65 xTRCInit();
66 zMainReadINI();
67 iFuncProfileParse(tmpStr = "scooby.elf", globals.profile);
68 xUtilStartup();
69 xSerialStartup(0x80, (st_SERIAL_PERCID_SIZE*)&g_xser_sizeinfo);
70 zDispatcher_Startup();
71 xScrFxInit();
72 xFXStartup();
73 zMainShowProgressBar();
74 xParMgrInit();
75 zParCmdInit();
76 iEnvStartup();
77 zEntPickup_Startup();
78 zCameraTweakGlobal_Init();
79 globals.option_vibration = 1; // 0x6c0
80 globals.pad0 = xPadEnable(globals.currentActivePad); // 0x6d1
81 globals.pad1 = 0;
82 gDebugPad = 0;
83 xPadRumbleEnable(globals.currentActivePad, globals.option_vibration); // 0x6d1, 0x6c0
84 xSGStartup();
85 xDebugTimestampScreen();
86 zShrapnel_GameInit();
87 zMainShowProgressBar();
88 xBehaveMgr_Startup();
89 zNPCMgr_Startup();
90 zMainLoop();
91 zNPCMgr_Shutdown();
92 xBehaveMgr_Shutdown();
93 zAssetShutdown();
94 xFXShutdown();
95 zDispatcher_Shutdown();
96 xSGShutdown();
97 xSerialShutdown();
98 xUtilShutdown();
99 iSystemExit();
100}
101

Callers

nothing calls this directly

Calls 15

memsetFunction · 0.85
zMainOutputMgrSetupFunction · 0.85
zMainInitGlobalsFunction · 0.85
zAssetStartupFunction · 0.85
zMainShowProgressBarFunction · 0.85
xTRCInitFunction · 0.85
iFuncProfileParseFunction · 0.85
xUtilStartupFunction · 0.85
xSerialStartupFunction · 0.85
zDispatcher_StartupFunction · 0.85
xScrFxInitFunction · 0.85

Tested by

no test coverage detected