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

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