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

Function iSystemInit

src/SB/Core/gc/iSystem.cpp:170–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 deviceConfig.unk_8 = 0x40000;
169
170 GXSetMisc(GX_MT_XF_FLUSH, 8);
171 OSInit();
172 DVDInit();
173 VIInit();
174
175 __OSFpscrEnableBits = FPSCR_ZE;
176 OSSetErrorHandler(0x10, (OSErrorHandler)FloatingPointErrorHandler);
177 OSSetErrorHandler(0xf, (OSErrorHandler)MemoryProtectionErrorHandler);
178
179 if (!DolphinInitMemorySystem(&MemoryFunctions))
180 {
181 OSPanic(__FILE__, 0x1cc, "Unable to initialize memory system.\n");
182 }
183 xDebugInit();
184 xMemInit();
185 iFileInit();
186 iTimeInit();
187 xPadInit();
188 xSndInit();
189 TRCInit();
190 RenderWareInit();
191 xMathInit();
192 xMath3Init();
193 old_dsc = GXSetDrawSyncCallback(my_dsc);
194}
195
196void iSystemExit()
197{
198 xDebugExit();
199 xMathExit();
200 RenderWareExit();
201 xSndExit();
202 xPadKill();
203 iFileExit();

Callers 1

mainFunction · 0.50

Calls 15

GXSetMiscFunction · 0.85
OSInitFunction · 0.85
DVDInitFunction · 0.85
VIInitFunction · 0.85
OSSetErrorHandlerFunction · 0.85
OSPanicFunction · 0.85
xDebugInitFunction · 0.85
xMemInitFunction · 0.85
iTimeInitFunction · 0.85
xPadInitFunction · 0.85
TRCInitFunction · 0.85
RenderWareInitFunction · 0.85

Tested by

no test coverage detected