diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-08-14 23:30:12 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-08-14 23:30:12 +0200 |
commit | d7b3887fe1e754aa0ec5970a175e439aa5c8fe86 (patch) | |
tree | 29a1cda18e804793eaf3fbeac30a0d373abd493b /depends/launcher/org/multimc/onesix/MMCClassLoader.java | |
parent | 0adb572a07d13a35bdb378ba024655de6a9967b3 (diff) | |
download | MultiMC-d7b3887fe1e754aa0ec5970a175e439aa5c8fe86.tar MultiMC-d7b3887fe1e754aa0ec5970a175e439aa5c8fe86.tar.gz MultiMC-d7b3887fe1e754aa0ec5970a175e439aa5c8fe86.tar.lz MultiMC-d7b3887fe1e754aa0ec5970a175e439aa5c8fe86.tar.xz MultiMC-d7b3887fe1e754aa0ec5970a175e439aa5c8fe86.zip |
Revert "NOISSUE redo the launcher part"
This reverts commit c1f7dda8fe412263ccd82fbf3d56687bd291c73c.
Diffstat (limited to 'depends/launcher/org/multimc/onesix/MMCClassLoader.java')
-rw-r--r-- | depends/launcher/org/multimc/onesix/MMCClassLoader.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/depends/launcher/org/multimc/onesix/MMCClassLoader.java b/depends/launcher/org/multimc/onesix/MMCClassLoader.java deleted file mode 100644 index 6c768ffe..00000000 --- a/depends/launcher/org/multimc/onesix/MMCClassLoader.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.multimc.onesix; - -import java.io.File; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLClassLoader; -import java.util.Arrays; -import java.util.List; - -public class MMCClassLoader extends URLClassLoader -{ - public MMCClassLoader(String natives, List<String> allJars) - throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, - InvocationTargetException, IllegalAccessException, NoSuchFieldException - { - super(process(allJars)); - Method setProperty = loadClass("java.lang.System").getMethod("setProperty", String.class, String.class); - setProperty.invoke(null, "java.library.path", natives); - setProperty.invoke(null, "org.lwjgl.librarypath", natives); - setProperty.invoke(null, "net.java.games.input.librarypath", natives); - } - - private static URL[] process(List<String> allJars) throws MalformedURLException - { - URL[] urls = new URL[allJars.size()]; - for (int i = 0; i < allJars.size(); i++) - { - String jar = allJars.get(i); - urls[i] = new File(jar).toURI().toURL(); - } - return urls; - } - - // TODO: use this method to use custom log configs - // @Override - // public URL findResource(String name) - // { - // return super.findResource(name); - // } -} |