File tree Expand file tree Collapse file tree
jadx-commons/jadx-app-commons/src/main/java/jadx/commons/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,14 +84,15 @@ private synchronized ProjectDirectories loadDirs() {
8484 * Return JNI, Foreign or PowerShell implementation
8585 */
8686 private static Windows getWinDirs () {
87- Windows defSup = Windows .getDefaultSupplier ().get ();
88- if (defSup instanceof WindowsPowerShell ) {
87+ Windows impl = Windows .getDefaultSupplier ().get ();
88+ if (impl instanceof WindowsPowerShell ) {
8989 if (JadxSystemInfo .IS_AMD64 ) {
90- // JNI library compiled for x86-64
91- return new WindowsJni ();
90+ // JNI library compiled only for x86-64
91+ impl = new WindowsJni ();
9292 }
9393 }
94- return defSup ;
94+ LOG .debug ("Using win dirs implementation: {}" , impl .getClass ().getSimpleName ());
95+ return impl ;
9596 }
9697
9798 public Path getCacheDir () {
Original file line number Diff line number Diff line change 22
33import java .util .Locale ;
44
5+ @ SuppressWarnings ("unused" )
56public class JadxSystemInfo {
67 public static final String JAVA_VM = System .getProperty ("java.vm.name" , "?" );
78 public static final String JAVA_VER = System .getProperty ("java.version" , "?" );
@@ -16,7 +17,7 @@ public class JadxSystemInfo {
1617 public static final boolean IS_LINUX = !IS_WINDOWS && !IS_MAC ;
1718 public static final boolean IS_UNIX = !IS_WINDOWS ;
1819
19- private static final String OS_ARCH_LOWER = OS_NAME .toLowerCase (Locale .ENGLISH );
20+ private static final String OS_ARCH_LOWER = OS_ARCH .toLowerCase (Locale .ENGLISH );
2021 public static final boolean IS_AMD64 = OS_ARCH_LOWER .equals ("amd64" );
2122 public static final boolean IS_ARM64 = OS_ARCH_LOWER .equals ("aarch64" );
2223
You can’t perform that action at this time.
0 commit comments