drop the package prefix from the search path - e.g. just load libjcpuid-x86-windows.so instead of freenet/support/CPUInformation/libjcpu-x86-windows.so

This commit is contained in:
jrandom
2004-08-21 18:05:36 +00:00
committed by zzz
parent 1431d1fecd
commit 274fd0b528
2 changed files with 2 additions and 4 deletions

View File

@ -516,8 +516,7 @@ public class CPUID {
private static final String getResourceName()
{
String pname = CPUID.class.getPackage().getName().replace('.','/');
return pname+"/"+getLibraryPrefix()+getLibraryMiddlePart()+"."+getLibrarySuffix();
return getLibraryPrefix()+getLibraryMiddlePart()+"."+getLibrarySuffix();
}
private static final String getLibraryPrefix()

View File

@ -512,13 +512,12 @@ public class NativeBigInteger extends BigInteger {
}
private static final String getResourceName(boolean optimized) {
String pname = NativeBigInteger.class.getPackage().getName().replace('.','/');
String pref = getLibraryPrefix();
String middle = getMiddleName(optimized);
String suff = getLibrarySuffix();
if(pref == null || middle == null || suff == null)
return null;
return pname+"/"+pref+middle+"."+suff;
return pref+middle+"."+suff;
}
private static final String getMiddleName(boolean optimized){