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)
}
unsigned language = RETRO_LANGUAGE_ENGLISH;
environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language);
switch(language)
if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language))
{
case RETRO_LANGUAGE_JAPANESE:
Config::FirmwareLanguage = 0;
break;
Config::FirmwareOverrideSettings = true;
switch(language)
{
case RETRO_LANGUAGE_JAPANESE:
Config::FirmwareLanguage = 0;
break;
case RETRO_LANGUAGE_FRENCH:
Config::FirmwareLanguage = 2;
break;
case RETRO_LANGUAGE_FRENCH:
Config::FirmwareLanguage = 2;
break;
case RETRO_LANGUAGE_GERMAN:
Config::FirmwareLanguage = 3;
break;
case RETRO_LANGUAGE_GERMAN:
Config::FirmwareLanguage = 3;
break;
case RETRO_LANGUAGE_ITALIAN:
Config::FirmwareLanguage = 4;
break;
case RETRO_LANGUAGE_ITALIAN:
Config::FirmwareLanguage = 4;
break;
case RETRO_LANGUAGE_SPANISH:
Config::FirmwareLanguage = 5;
break;
case RETRO_LANGUAGE_SPANISH:
Config::FirmwareLanguage = 5;
break;
default:
Config::FirmwareLanguage = 1; // English
default:
Config::FirmwareLanguage = 1; // English
}
}
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