Skip to content

Commit

Permalink
Fix MacOS ARM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TaigoStudio committed Jun 8, 2024
1 parent 2c0b53e commit 8b497f3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,10 @@ public override (List<NativeFileInfo>, List<FileInfo>) 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;

Expand Down Expand Up @@ -607,4 +609,4 @@ void ProcessProfile(VersionInfo result, string id)
LauncherProfileParser.LauncherProfile.Profiles!.Add(gameId, gameProfile);
LauncherProfileParser.SaveProfile();
}
}
}

0 comments on commit 8b497f3

Please sign in to comment.