mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
unix: only set default language if support for multiple languages is compiled in
This commit is contained in:
parent
aa588dec35
commit
1ecc5fd9d1
@ -2496,11 +2496,15 @@ static const char* frontend_unix_get_cpu_model_name(void)
|
||||
|
||||
enum retro_language frontend_unix_get_user_language(void)
|
||||
{
|
||||
enum retro_language lang = RETRO_LANGUAGE_ENGLISH;
|
||||
#ifdef HAVE_LANGEXTRA
|
||||
#ifdef ANDROID
|
||||
return RETRO_LANGUAGE_ENGLISH;
|
||||
#else
|
||||
return rarch_get_language_from_iso(getenv("LANG"));
|
||||
lang = rarch_get_language_from_iso(getenv("LANG"));
|
||||
#endif
|
||||
#endif
|
||||
return lang;
|
||||
}
|
||||
|
||||
frontend_ctx_driver_t frontend_ctx_unix = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user