From 0a1fe0135f9120ce82da58925741a606223b4256 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 25 May 2023 13:18:42 +0200 Subject: [PATCH] lr: default language=EN, region=USA. TrickStyle fix libretro: set default language to English and default region to USA. Same as standalone. Force language to English for TrickStyle (US) Issue #1082 --- core/emulator.cpp | 5 +++++ shell/libretro/libretro_core_options.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/emulator.cpp b/core/emulator.cpp index 9c7814980..c813434e8 100644 --- a/core/emulator.cpp +++ b/core/emulator.cpp @@ -246,6 +246,11 @@ static void loadSpecialSettings() NOTICE_LOG(BOOT, "Forcing Full Framebuffer Emulation"); config::EmulateFramebuffer.override(true); } + if (prod_id == "T-8102N") // TrickStyle (US) + { + NOTICE_LOG(BOOT, "Forcing English Language"); + config::Language.override(1); + } } else if (settings.platform.isArcade()) { diff --git a/shell/libretro/libretro_core_options.h b/shell/libretro/libretro_core_options.h index d12076903..c5664cd02 100644 --- a/shell/libretro/libretro_core_options.h +++ b/shell/libretro/libretro_core_options.h @@ -117,7 +117,7 @@ struct retro_core_option_v2_definition option_defs_us[] = { { "Default", NULL }, { NULL, NULL }, }, - "Default", + "USA", }, { CORE_OPTION_NAME "_language", @@ -136,7 +136,7 @@ struct retro_core_option_v2_definition option_defs_us[] = { { "Default", NULL }, { NULL, NULL }, }, - "Default", + "English", }, { CORE_OPTION_NAME "_hle_bios",