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

Function OSGetFontEncode

src/dolphin/src/os/OSFont.c:352–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352u16 OSGetFontEncode(void)
353{
354 static u16 fontEncode = 0xFFFF;
355 if (fontEncode <= 1)
356 {
357 return fontEncode;
358 }
359 switch (__OSTVMode)
360 {
361 case VI_NTSC:
362 fontEncode = (__VIRegs[VI_DTV_STAT] & 2) ? OS_FONT_ENCODE_SJIS : OS_FONT_ENCODE_ANSI;
363 break;
364
365 case VI_PAL:
366 case VI_MPAL:
367 case VI_DEBUG:
368 case VI_DEBUG_PAL:
369 case VI_EURGB60:
370 default:
371 fontEncode = OS_FONT_ENCODE_ANSI;
372 }
373
374 return fontEncode;
375}
376
377static void ReadROM(void* string, int len, int offset)
378{

Callers 7

GetFontCodeFunction · 0.85
ReadFontFunction · 0.85
OSLoadFontFunction · 0.85
OSInitFontFunction · 0.85
OSGetFontTextureFunction · 0.85
CARDInitFunction · 0.85
InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected