From 634aa8086aa9848d7c154b0488c57d58742e2106 Mon Sep 17 00:00:00 2001 From: Aragas Date: Thu, 12 Jan 2023 09:25:50 +0200 Subject: [PATCH] Fixed launch --- build/common.props | 2 +- changelog.txt | 4 ++++ src/Bannerlord.BUTRLoader.LauncherEx/Manager.cs | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/common.props b/build/common.props index 4eb4d92..9de4a96 100644 --- a/build/common.props +++ b/build/common.props @@ -7,7 +7,7 @@ - 1.21.0 + 1.21.1 2.2.2 3.0.0.127 5.0.166 diff --git a/changelog.txt b/changelog.txt index a7903e3..98a5cac 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,8 @@ --------------------------------------------------------------------------------------------------- +Version: 1.21.1 +Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3 +* Fixed launch +--------------------------------------------------------------------------------------------------- Version: 1.21.0 Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3 * Added support for displaying Chinese, Japanese and Korean logograms diff --git a/src/Bannerlord.BUTRLoader.LauncherEx/Manager.cs b/src/Bannerlord.BUTRLoader.LauncherEx/Manager.cs index 7c5d419..c4e9a0b 100644 --- a/src/Bannerlord.BUTRLoader.LauncherEx/Manager.cs +++ b/src/Bannerlord.BUTRLoader.LauncherEx/Manager.cs @@ -93,7 +93,7 @@ public static void Enable() case BUTRLocalizationManager.Korean: { var asset = new AssetPackage(Path.Combine(BasePath.Name, "Modules/Native/AssetPackages/gauntlet_ui.tpac")); - if (asset.Items.OfType().FirstOrDefault(x => x.Name == "ui_fonts_1") is { } korean) + if (asset.Items.OfType().FirstOrDefault(x => x.Name == "ui_fonts_4") is { } korean) { GraphicsContextManager.CreateAssetTextureAndRegister("NanumGothicKR", korean); SpriteDataManager.CreateGenericAndRegister("NanumGothicKR"); @@ -113,14 +113,12 @@ public static void Enable() WidgetFactoryManager.CreateAndRegister("Launcher.ToggleButton", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Widgets.Launcher.ToggleButton.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SearchBox", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Widgets.Launcher.SearchBox.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.Scrollbar", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Widgets.Launcher.Scrollbar.xml")); - WidgetFactoryManager.CreateAndRegister("Launcher.Dropdown", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Widgets.Launcher.Dropdown.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyBoolView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyBoolView.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyButtonView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyButtonView.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyFloatView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyFloatView.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyIntView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyIntView.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyStringView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyStringView.xml")); - WidgetFactoryManager.CreateAndRegister("Launcher.SettingsPropertyDropdownView", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Properties.Launcher.SettingsPropertyDropdownView.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.Options", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Launcher.Options.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.Options.OptionTuple", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Launcher.Options.OptionTuple.xml")); WidgetFactoryManager.CreateAndRegister("Launcher.Mods2", Load("Bannerlord.BUTRLoader.Resources.Prefabs.Launcher.Mods.xml"));