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

Function THPInit

src/dolphin/src/thp/THPDec.c:2291–2316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2289}
2290
2291BOOL THPInit(void)
2292{
2293 u8 *base;
2294 OSRegisterVersion(__THPVersion);
2295 base = (u8 *)(0xE000 << 16); // lc base
2296
2297 __THPLCWork512[0] = base;
2298 base += 0x2000;
2299 __THPLCWork512[1] = base;
2300 base += 0x800;
2301 __THPLCWork512[2] = base;
2302 base += 0x200;
2303
2304 base = (u8 *)(0xE000 << 16); // lc base
2305 __THPLCWork672[0] = base;
2306 base += 0x2800;
2307 __THPLCWork672[1] = base;
2308 base += 0xA00;
2309 __THPLCWork672[2] = base;
2310 base += 0xA80;
2311
2312 OSInitFastCast();
2313
2314 __THPInitFlag = TRUE;
2315 return TRUE;
2316}

Callers

nothing calls this directly

Calls 2

OSRegisterVersionFunction · 0.85
OSInitFastCastFunction · 0.85

Tested by

no test coverage detected