diff --git a/.gitignore b/.gitignore index c31d98d..b345fad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.*/ *~ *.exe *.o diff --git a/common/font.c b/common/font.c index a4c4e39..42a5b8b 100644 --- a/common/font.c +++ b/common/font.c @@ -9,6 +9,10 @@ #define FONT_FACES_MAX 2 #endif +#ifdef __SWITCH__ +static bool s_plinited; +#endif + static FT_Error s_font_libret=1, s_font_facesret[FONT_FACES_MAX]; static FT_Library s_font_library; @@ -364,7 +368,11 @@ bool fontInitialize(void) PlFontData fonts[PlSharedFontType_Total]; Result rc=0; - rc = plGetSharedFont(textGetLanguageCode(), fonts, FONT_FACES_MAX, &s_font_faces_total); + rc = plInitialize(PlServiceType_User); + if (R_SUCCEEDED(rc)) { + s_plinited = true; + rc = plGetSharedFont(textGetLanguageCode(), fonts, FONT_FACES_MAX, &s_font_faces_total); + } if (R_FAILED(rc)) return false; for (i=0; iposEnd[0]; - + handleTouch(menu); if (down & KEY_Y)