mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-10 20:37:30 -04:00
parent
833ac2e32e
commit
5d8a56cf66
@ -87,16 +87,19 @@ public final class NativePatcher {
|
|||||||
|
|
||||||
// Try patch natives
|
// Try patch natives
|
||||||
|
|
||||||
|
OperatingSystem os = javaVersion.getPlatform().getOperatingSystem();
|
||||||
|
Architecture arch = javaVersion.getArchitecture();
|
||||||
|
VersionNumber gameVersionNumber = gameVersion != null ? VersionNumber.asVersion(gameVersion) : null;
|
||||||
|
|
||||||
if (settings.isNotPatchNatives())
|
if (settings.isNotPatchNatives())
|
||||||
return version;
|
return version;
|
||||||
|
|
||||||
if (javaVersion.getArchitecture().isX86())
|
if (arch.isX86())
|
||||||
return version;
|
return version;
|
||||||
|
|
||||||
if (javaVersion.getPlatform().getOperatingSystem() == OperatingSystem.OSX
|
if ((os == OperatingSystem.OSX || os == OperatingSystem.WINDOWS) && arch == Architecture.ARM64
|
||||||
&& javaVersion.getArchitecture() == Architecture.ARM64
|
&& gameVersionNumber != null
|
||||||
&& gameVersion != null
|
&& gameVersionNumber.compareTo("1.19") >= 0)
|
||||||
&& VersionNumber.VERSION_COMPARATOR.compare(gameVersion, "1.19") >= 0)
|
|
||||||
return version;
|
return version;
|
||||||
|
|
||||||
Map<String, Library> replacements = getNatives(javaVersion.getPlatform());
|
Map<String, Library> replacements = getNatives(javaVersion.getPlatform());
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user