Changeset 274fd0b


Ignore:
Timestamp:
Aug 21, 2004 6:05:36 PM (17 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
cb5e3ef
Parents:
1431d1f
git-author:
jrandom <jrandom> (08/21/04 18:05:36)
git-committer:
zzz <zzz@…> (08/21/04 18:05:36)
Message:

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

Location:
core/java/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/freenet/support/CPUInformation/CPUID.java

    r1431d1f r274fd0b  
    517517    private static final String getResourceName()
    518518    {
    519         String pname = CPUID.class.getPackage().getName().replace('.','/');
    520         return pname+"/"+getLibraryPrefix()+getLibraryMiddlePart()+"."+getLibrarySuffix();
     519        return getLibraryPrefix()+getLibraryMiddlePart()+"."+getLibrarySuffix();
    521520    }
    522521   
  • core/java/src/net/i2p/util/NativeBigInteger.java

    r1431d1f r274fd0b  
    513513   
    514514    private static final String getResourceName(boolean optimized) {
    515         String pname = NativeBigInteger.class.getPackage().getName().replace('.','/');
    516515        String pref = getLibraryPrefix();
    517516        String middle = getMiddleName(optimized);
     
    519518        if(pref == null || middle == null || suff == null)
    520519            return null;
    521         return pname+"/"+pref+middle+"."+suff;
     520        return pref+middle+"."+suff;
    522521    }
    523522   
Note: See TracChangeset for help on using the changeset viewer.