summaryrefslogtreecommitdiffstats
path: root/libraries/launcher/org/multimc/onesix/OneSixLauncher.java
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-27 04:04:19 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-27 04:04:19 +0200
commit464bc0f770880737597954fee8d48035b3274d6d (patch)
treeb58196730487ff1826b4dd542c797ea2f37e540f /libraries/launcher/org/multimc/onesix/OneSixLauncher.java
parent0595a0009039abcfe68536e23c8a383c36000225 (diff)
downloadMultiMC-464bc0f770880737597954fee8d48035b3274d6d.tar
MultiMC-464bc0f770880737597954fee8d48035b3274d6d.tar.gz
MultiMC-464bc0f770880737597954fee8d48035b3274d6d.tar.lz
MultiMC-464bc0f770880737597954fee8d48035b3274d6d.tar.xz
MultiMC-464bc0f770880737597954fee8d48035b3274d6d.zip
GH-1997 replace use of weird hacks with normal java arguments
This affects classpath and java.library.path. The catch is that if the strings cannot be expressed in system codepage on Windows, it tries to use 8.3 paths.
Diffstat (limited to 'libraries/launcher/org/multimc/onesix/OneSixLauncher.java')
-rw-r--r--libraries/launcher/org/multimc/onesix/OneSixLauncher.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/libraries/launcher/org/multimc/onesix/OneSixLauncher.java b/libraries/launcher/org/multimc/onesix/OneSixLauncher.java
index f057e55a..8f0a498f 100644
--- a/libraries/launcher/org/multimc/onesix/OneSixLauncher.java
+++ b/libraries/launcher/org/multimc/onesix/OneSixLauncher.java
@@ -214,32 +214,6 @@ public class OneSixLauncher implements Launcher
return -1;
}
- // add libraries to classpath
- if(!Utils.addToClassPath(libraries))
- {
- System.err.println("Halting launch due to previous errors.");
- return -1;
- }
-
- // set the native libs path... the brute force way
- try
- {
- System.setProperty("java.library.path", nativePath);
- System.setProperty("org.lwjgl.librarypath", nativePath);
- System.setProperty("net.java.games.input.librarypath", nativePath);
- // by the power of reflection, initialize native libs again. DIRTY!
- // this is SO BAD. imagine doing that to ld
- Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
- fieldSysPath.setAccessible( true );
- fieldSysPath.set( null, null );
- }
- catch (Exception e)
- {
- System.err.println("Failed to set the native library path:");
- e.printStackTrace(System.err);
- System.err.println("Minecraft might fail to launch...");
- }
-
// grab the system classloader and ...
cl = ClassLoader.getSystemClassLoader();