mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +01:00
fix: enhance bitness detection on windows
This commit is contained in:
parent
f076def4c5
commit
c1f9afe33c
@ -33,6 +33,12 @@ public class OSDetection {
|
||||
}
|
||||
|
||||
public static boolean is64Bit() {
|
||||
if (isWindows()) {
|
||||
String arch = System.getenv("PROCESSOR_ARCHITECTURE");
|
||||
String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432");
|
||||
|
||||
return arch != null && arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64");
|
||||
}
|
||||
return Bit.equalsIgnoreCase("64");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user