diff --git a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs index 74513795..d1d54d0e 100644 --- a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs +++ b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs @@ -54,8 +54,6 @@ namespace Ryujinx.HLE.HOS.SystemState public SystemStateMgr() { - SetLanguage(SystemLanguage.AmericanEnglish); - SetAudioOutputAsBuiltInSpeaker(); _profiles = new ConcurrentDictionary(); @@ -71,7 +69,20 @@ namespace Ryujinx.HLE.HOS.SystemState { DesiredLanguageCode = GetLanguageCode((int)language); - DesiredTitleLanguage = Enum.Parse(Enum.GetName(typeof(SystemLanguage), language)); + switch (language) + { + case SystemLanguage.Taiwanese: + case SystemLanguage.TraditionalChinese: + DesiredTitleLanguage = TitleLanguage.Taiwanese; + break; + case SystemLanguage.Chinese: + case SystemLanguage.SimplifiedChinese: + DesiredTitleLanguage = TitleLanguage.Chinese; + break; + default: + DesiredTitleLanguage = Enum.Parse(Enum.GetName(typeof(SystemLanguage), language)); + break; + } } public void SetAudioOutputAsTv() diff --git a/Ryujinx/Config.cs b/Ryujinx/Config.cs index 216ed0a5..e7b346ea 100644 --- a/Ryujinx/Config.cs +++ b/Ryujinx/Config.cs @@ -1,6 +1,7 @@ using LibHac; using Ryujinx.Common.Logging; using Ryujinx.HLE; +using Ryujinx.HLE.HOS.SystemState; using Ryujinx.HLE.Input; using Ryujinx.UI.Input; using System; @@ -61,6 +62,10 @@ namespace Ryujinx } } + SystemLanguage SetLanguage = Enum.Parse(parser.Value("System_Language")); + + device.System.State.SetLanguage(SetLanguage); + device.System.State.DockedMode = Convert.ToBoolean(parser.Value("Docked_Mode")); device.EnableDeviceVsync = Convert.ToBoolean(parser.Value("Enable_Vsync")); diff --git a/Ryujinx/Ryujinx.conf b/Ryujinx/Ryujinx.conf index 5b646a2a..c04d7b5a 100644 --- a/Ryujinx/Ryujinx.conf +++ b/Ryujinx/Ryujinx.conf @@ -22,6 +22,10 @@ Logging_Enable_Error = true #Filtered log classes, seperated by ", ", eg. `Logging_Filtered_Classes = Loader, ServiceFS` Logging_Filtered_Classes = +#System Language list: https://gist.github.com/HorrorTroll/b6e4a88d774c3c9b3bdf54d79a7ca43b +#Change System Language +System_Language = AmericanEnglish + #Enable or Disable Docked Mode Docked_Mode = false