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,7 +624,10 @@ bool retro_load_game(const struct retro_game_info *info)
}
unsigned language = RETRO_LANGUAGE_ENGLISH;
environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language);
if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language))
{
Config::FirmwareOverrideSettings = true;
switch(language)
{
case RETRO_LANGUAGE_JAPANESE:
......@@ -650,6 +653,7 @@ bool retro_load_game(const struct retro_game_info *info)
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