fix build on new libctru and add lang fetch (#358)

removes ACT functions now in libctru
implement a single function to load a CFG_Language
This commit is contained in:
Théo B.
2025-10-25 22:07:54 +02:00
committed by GitHub
parent ba08ab9108
commit 69e0edffb4
4 changed files with 20 additions and 54 deletions

View File

@@ -2086,3 +2086,12 @@ Language_s init_strings(CFG_Language lang)
return language_english;
}
}
CFG_Language get_system_language(void)
{
u8 lang = CFG_LANGUAGE_EN;
// can never fail, cfguInit is one of the very first thing that happens on start
// and if it does anyway, default to english
CFGU_GetSystemLanguage(&lang);
return (CFG_Language)lang;
}