From ca00bcda9ceab82e61853654686b13e0fc4b6f85 Mon Sep 17 00:00:00 2001 From: bombcar Date: Fri, 8 Dec 2023 14:11:14 -0600 Subject: [PATCH] fix not seeing java as 64 bit on M1 processors --- launcher/java/JavaChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/java/JavaChecker.cpp b/launcher/java/JavaChecker.cpp index 35ddc35c23..3bc5a39945 100644 --- a/launcher/java/JavaChecker.cpp +++ b/launcher/java/JavaChecker.cpp @@ -129,7 +129,7 @@ void JavaChecker::finished(int exitcode, QProcess::ExitStatus status) auto os_arch = results["os.arch"]; auto java_version = results["java.version"]; auto java_vendor = results["java.vendor"]; - bool is_64 = os_arch == "x86_64" || os_arch == "amd64"; + bool is_64 = os_arch == "x86_64" || os_arch == "amd64" || os_arch == "aarch64"; result.validity = JavaCheckResult::Validity::Valid;