summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-11-16 04:03:08 +0100
committerPetr Mrázek <peterix@gmail.com>2014-11-16 04:04:24 +0100
commit03a25c9a5daf05655ce65d1d4d91d4784252f3d5 (patch)
tree4cd2c94cb56677d9f8a78e9951cb72d27bb40f00
parent83b90d8bfb51a9da7794daed982d08d66896960d (diff)
downloadMultiMC-03a25c9a5daf05655ce65d1d4d91d4784252f3d5.tar
MultiMC-03a25c9a5daf05655ce65d1d4d91d4784252f3d5.tar.gz
MultiMC-03a25c9a5daf05655ce65d1d4d91d4784252f3d5.tar.lz
MultiMC-03a25c9a5daf05655ce65d1d4d91d4784252f3d5.tar.xz
MultiMC-03a25c9a5daf05655ce65d1d4d91d4784252f3d5.zip
Do not do symlink hackery for java < 80.4.4
-rw-r--r--depends/launcher/org/multimc/Utils.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/depends/launcher/org/multimc/Utils.java b/depends/launcher/org/multimc/Utils.java
index a695b008..addeb3cb 100644
--- a/depends/launcher/org/multimc/Utils.java
+++ b/depends/launcher/org/multimc/Utils.java
@@ -259,6 +259,16 @@ public class Utils
{
zip.close();
}
+
+ // For java <= 7, do not do symlink hackery below.
+ String[] javaVersionElements = System.getProperty("java.version").split("\\.");
+ int major = Integer.parseInt(javaVersionElements[1]);
+ if (major <= 7)
+ {
+ return;
+ }
+
+ // for >= 8, do hackery
for (String entryName : toProcess)
{
// check if we need a symlink