| 43 | static void zLedgeAdjust(zLedgeGrabParams* params); |
| 44 | void zMainMemCardRenderText(const char*, bool); |
| 45 | void RenderText(const char*, bool); |
| 46 | |
| 47 | void 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 |
nothing calls this directly
no test coverage detected