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

Method Init

src/SB/Core/gc/iTRC.cpp:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53} // namespace iTRCDisk
54
55BOOL ROMFont::Init()
56{
57 if (OSGetFontEncode() == 1)
58 {
59 ROMFont::mFontData = (OSFontHeader*)OSAllocFromHeap(__OSCurrHeap, 0x120F00);
60 }
61 else
62 {
63 ROMFont::mFontData = (OSFontHeader*)OSAllocFromHeap(__OSCurrHeap, 0x20120);
64 }
65
66 OSFontHeader* volatile& hack = ROMFont::mFontData;
67 return OSInitFont(hack);
68}
69
70void ROMFont::InitDisplay(_GXRenderModeObj* InRenderMode)
71{

Callers

nothing calls this directly

Calls 4

OSGetFontEncodeFunction · 0.85
OSAllocFromHeapFunction · 0.85
OSInitFontFunction · 0.85
InitFunction · 0.50

Tested by

no test coverage detected