mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-27 06:10:08 +08:00
Fix #873: On 64 bit x86 machines, os.arch
may be x64 or x86-64
This commit is contained in:
parent
947a2e3d91
commit
cecabe5bc4
@ -73,9 +73,10 @@ public class SelfDependencyPatcher {
|
||||
|
||||
// We can only self-patch JavaFX on x86 platform.
|
||||
// For ARM support, user's manual patch is required.
|
||||
switch (System.getProperty("os.arch")) {
|
||||
switch (System.getProperty("os.arch", "unknown").toLowerCase()) {
|
||||
case "amd64":
|
||||
case "x86":
|
||||
case "x64":
|
||||
case "x86-64":
|
||||
break;
|
||||
default:
|
||||
throw new IncompatibleVersionException();
|
||||
|
Loading…
Reference in New Issue
Block a user