hide unavailable languages

This commit is contained in:
dborth 2010-03-15 23:29:02 +00:00
parent ad5c687ce8
commit 0e99dad39c
2 changed files with 15 additions and 0 deletions

View File

@ -3586,6 +3586,14 @@ static int MenuSettingsMenu()
break;
case 5:
GCSettings.language++;
if(GCSettings.language == LANG_JAPANESE ||
GCSettings.language == LANG_ITALIAN ||
GCSettings.language == LANG_SIMP_CHINESE ||
GCSettings.language == LANG_TRAD_CHINESE ||
GCSettings.language == LANG_KOREAN)
GCSettings.language++;
if(GCSettings.language > LANG_KOREAN)
GCSettings.language = 0;
break;

View File

@ -422,6 +422,13 @@ DefaultSettings ()
GCSettings.Rumble = 1;
#ifdef HW_RVL
GCSettings.language = CONF_GetLanguage();
if(GCSettings.language == LANG_JAPANESE ||
GCSettings.language == LANG_ITALIAN ||
GCSettings.language == LANG_SIMP_CHINESE ||
GCSettings.language == LANG_TRAD_CHINESE ||
GCSettings.language == LANG_KOREAN)
GCSettings.language = LANG_ENGLISH;
#else
GCSettings.language = LANG_ENGLISH;
#endif