fix: use 'dev.dirs' JNI implementation only on x86-64 (#2578)

This commit is contained in:
Skylot
2025-07-23 19:26:14 +01:00
parent b64c93160b
commit 5b09378614
@@ -81,12 +81,15 @@ public class JadxCommonFiles {
}
/**
* Return JNI or Foreign implementation
* Return JNI, Foreign or PowerShell implementation
*/
private static Windows getWinDirs() {
Windows defSup = Windows.getDefaultSupplier().get();
if (defSup instanceof WindowsPowerShell) {
return new WindowsJni();
if (JadxSystemInfo.IS_AMD64) {
// JNI library compiled for x86-64
return new WindowsJni();
}
}
return defSup;
}