From 3448a018d33f8192374f721cfffa99367a298135 Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 29 Jan 2020 18:29:32 -0600 Subject: [PATCH] Use absolute paths for legacy launcher wrapper support --- launcher/src/main/java/com/skcraft/launcher/Launcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/Launcher.java b/launcher/src/main/java/com/skcraft/launcher/Launcher.java index f6d5cce..60ebbcd 100644 --- a/launcher/src/main/java/com/skcraft/launcher/Launcher.java +++ b/launcher/src/main/java/com/skcraft/launcher/Launcher.java @@ -88,7 +88,7 @@ public final class Launcher { public Launcher(@NonNull File baseDir, @NonNull File configDir) throws IOException { SharedLocale.loadBundle("com.skcraft.launcher.lang.Launcher", Locale.getDefault()); - this.baseDir = baseDir; + this.baseDir = baseDir.getAbsoluteFile(); this.properties = LauncherUtils.loadProperties(Launcher.class, "launcher.properties", "com.skcraft.launcher.propertiesFile"); this.instances = new InstanceList(this); this.assets = new AssetsRoot(new File(baseDir, "assets")); @@ -392,7 +392,7 @@ public final class Launcher { if (dir != null) { log.info("Using given base directory " + dir.getAbsolutePath()); } else { - dir = new File("."); + dir = new File(""); log.info("Using current directory " + dir.getAbsolutePath()); }