From 0e99dad39cd0514fe1979443a774b760bb8ba678 Mon Sep 17 00:00:00 2001 From: dborth Date: Mon, 15 Mar 2010 23:29:02 +0000 Subject: [PATCH] hide unavailable languages --- source/ngc/menu.cpp | 8 ++++++++ source/ngc/preferences.cpp | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index 4c37d26..3b8fa74 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -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; diff --git a/source/ngc/preferences.cpp b/source/ngc/preferences.cpp index bde8706..8a7a578 100644 --- a/source/ngc/preferences.cpp +++ b/source/ngc/preferences.cpp @@ -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