Skip to content

Commit

Permalink
Merge pull request #154 from TaigoStudio/master
Browse files Browse the repository at this point in the history
Fix MacOS ARM bug
  • Loading branch information
laolarou726 committed Jun 8, 2024
2 parents 2c0b53e + 8b497f3 commit cfd8e3a
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 cfd8e3a

Please sign in to comment.