Fix vanilla bug with GLFW init error display - actually the error, not the memory address containing the message

Load natives from the environment var, not hardcoding.
This commit is contained in:
cpw committed 2018-09-10 20:31:51 -04:00
1 parent bec9214d0c
commit f72a7e02e3
3 files changed
+22 -4

No files matched your search

@@ -70,7 +70,7 @@ public class LaunchTesting
private static void hackNatives()
{
String paths = System.getProperty("java.library.path");
String nativesDir = "/home/cpw/.gradle/caches/minecraft/net/minecraft/natives/1.12.2"; //TODO Not hardcode this, FG setups us a natives folder. And sets it in the eclipse run configs.
String nativesDir = System.getenv().get("nativesDirectory");
if (Strings.isNullOrEmpty(paths))
paths = nativesDir;