From b97ffcaadc3ef1fe0fa9d8894e989e9918ad881d Mon Sep 17 00:00:00 2001 From: dborth Date: Mon, 15 Mar 2010 23:35:15 +0000 Subject: [PATCH] disable unsupported languages --- source/ngc/menu.cpp | 7 +++++-- source/ngc/preferences.cpp | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index 426acf0..2e126b3 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -3619,8 +3619,11 @@ static int MenuSettingsMenu() break; case 5: GCSettings.language++; - if(GCSettings.language > LANG_KOREAN) - GCSettings.language = 0; + + if(GCSettings.language == LANG_ITALIAN) + GCSettings.language++; + else if(GCSettings.language > LANG_DUTCH) + GCSettings.language = LANG_ENGLISH; break; } diff --git a/source/ngc/preferences.cpp b/source/ngc/preferences.cpp index c3c5bb2..1c14545 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