| 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 | |
| 196 | void iSystemExit() |
| 197 | { |
| 198 | xDebugExit(); |
| 199 | xMathExit(); |
| 200 | RenderWareExit(); |
| 201 | xSndExit(); |
| 202 | xPadKill(); |
| 203 | iFileExit(); |
no test coverage detected