Unverified Commit 0f52e263 authored by Julien Loir's avatar Julien Loir Committed by GitHub
Browse files

Fix language configuration not being used (#120)

parent ac2f1ef8
Pipeline #55303 passed with stages
in 2 minutes and 33 seconds
...@@ -624,31 +624,35 @@ bool retro_load_game(const struct retro_game_info *info) ...@@ -624,31 +624,35 @@ bool retro_load_game(const struct retro_game_info *info)
} }
unsigned language = RETRO_LANGUAGE_ENGLISH; unsigned language = RETRO_LANGUAGE_ENGLISH;
environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language); if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language))
switch(language)
{ {
case RETRO_LANGUAGE_JAPANESE: Config::FirmwareOverrideSettings = true;
Config::FirmwareLanguage = 0;
break; switch(language)
{
case RETRO_LANGUAGE_JAPANESE:
Config::FirmwareLanguage = 0;
break;
case RETRO_LANGUAGE_FRENCH: case RETRO_LANGUAGE_FRENCH:
Config::FirmwareLanguage = 2; Config::FirmwareLanguage = 2;
break; break;
case RETRO_LANGUAGE_GERMAN: case RETRO_LANGUAGE_GERMAN:
Config::FirmwareLanguage = 3; Config::FirmwareLanguage = 3;
break; break;
case RETRO_LANGUAGE_ITALIAN: case RETRO_LANGUAGE_ITALIAN:
Config::FirmwareLanguage = 4; Config::FirmwareLanguage = 4;
break; break;
case RETRO_LANGUAGE_SPANISH: case RETRO_LANGUAGE_SPANISH:
Config::FirmwareLanguage = 5; Config::FirmwareLanguage = 5;
break; break;
default: default:
Config::FirmwareLanguage = 1; // English Config::FirmwareLanguage = 1; // English
}
} }
check_variables(true); check_variables(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment