mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Переопределение nativePath в PublicURLClassLoader
This commit is contained in:
parent
82858575c7
commit
2e0e187ffc
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
public class PublicURLClassLoader extends URLClassLoader {
|
public class PublicURLClassLoader extends URLClassLoader {
|
||||||
@LauncherAPI
|
@LauncherAPI
|
||||||
public static ClassLoader systemclassloader = ClassLoader.getSystemClassLoader();
|
public static ClassLoader systemclassloader = ClassLoader.getSystemClassLoader();
|
||||||
|
public String nativePath;
|
||||||
@LauncherAPI
|
@LauncherAPI
|
||||||
public static ClassLoader getSystemClassLoader() {
|
public static ClassLoader getSystemClassLoader() {
|
||||||
return systemclassloader;
|
return systemclassloader;
|
||||||
|
@ -62,6 +62,11 @@ public PublicURLClassLoader(URL[] urls) {
|
||||||
public PublicURLClassLoader(URL[] urls, ClassLoader parent) {
|
public PublicURLClassLoader(URL[] urls, ClassLoader parent) {
|
||||||
super(urls, parent);
|
super(urls, parent);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public String findLibrary(String name)
|
||||||
|
{
|
||||||
|
return nativePath.concat(name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addURL(URL url) {
|
public void addURL(URL url) {
|
||||||
|
|
Loading…
Reference in a new issue