WiiFlow_Lite/source/banner/LanguageCode.c
fix94.1 706e18c6c0 -internal wii game and channel banner playback, still work in
progress, thanks alot to dimok and the whole usb loader gx team 
for help and the code for it!
To zoom the banner to fullscreen click the back button, to zoom out
the back button again, known bugs:
-some games fuck up the textures of buttons (e.g. wii play motion)
-if no wii game or channel was selected and you try to launch a game
or exit wiiflow it will most likely codedump
2012-07-03 16:26:49 +00:00

27 lines
684 B
C

#include <gccore.h>
const char* CONF_GetLanguageString(void)
{
static int confLang = 0xdead;
if(confLang == 0xdead)
confLang = CONF_GetLanguage();
const char*lang;
switch( confLang )
{
case CONF_LANG_JAPANESE: lang = "JPN"; break;
default:
case CONF_LANG_ENGLISH: lang = "ENG"; break;
case CONF_LANG_GERMAN: lang = "GER"; break;
case CONF_LANG_FRENCH: lang = "FRA"; break;
case CONF_LANG_SPANISH: lang = "SPA"; break;
case CONF_LANG_ITALIAN: lang = "ITA"; break;
case CONF_LANG_DUTCH: lang = "NED"; break;
case CONF_LANG_SIMP_CHINESE:
case CONF_LANG_TRAD_CHINESE: lang = "CHN"; break;
case CONF_LANG_KOREAN: lang = "KOR"; break;
}
return lang;
}