mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +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 {
|
||||
@LauncherAPI
|
||||
public static ClassLoader systemclassloader = ClassLoader.getSystemClassLoader();
|
||||
|
||||
public String nativePath;
|
||||
@LauncherAPI
|
||||
public static ClassLoader getSystemClassLoader() {
|
||||
return systemclassloader;
|
||||
|
@ -62,6 +62,11 @@ public PublicURLClassLoader(URL[] urls) {
|
|||
public PublicURLClassLoader(URL[] urls, ClassLoader parent) {
|
||||
super(urls, parent);
|
||||
}
|
||||
@Override
|
||||
public String findLibrary(String name)
|
||||
{
|
||||
return nativePath.concat(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addURL(URL url) {
|
||||
|
|
Loading…
Reference in a new issue