From 8b497f3110c6038c91056e858bdd8c2f01986f80 Mon Sep 17 00:00:00 2001 From: TaigoStudio <126141594+TaigoStudio@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:27:05 +0600 Subject: [PATCH] Fix MacOS ARM bug --- .../DefaultComponent/Launch/DefaultVersionLocator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultVersionLocator.cs b/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultVersionLocator.cs index 2aac87b..f0777f0 100644 --- a/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultVersionLocator.cs +++ b/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultVersionLocator.cs @@ -422,8 +422,10 @@ public override (List, List) GetNatives(Library[] libr if (flag) { - var rootLibs = GetNatives(inherits[i]!.Libraries); - + var inheritsLibs = inherits[i]!.Libraries.ToList(); + inheritsLibs = NativeReplaceHelper.Replace([rawVersion, ..inherits ?? []], inheritsLibs, NativeReplacementPolicy); + + var rootLibs = GetNatives([.. inheritsLibs]); result.Libraries = rootLibs.Item2; result.Natives = rootLibs.Item1; @@ -607,4 +609,4 @@ void ProcessProfile(VersionInfo result, string id) LauncherProfileParser.LauncherProfile.Profiles!.Add(gameId, gameProfile); LauncherProfileParser.SaveProfile(); } -} \ No newline at end of file +}