mirror of
https://github.com/SKCraft/Launcher.git
synced 2025-01-08 19:38:58 +01:00
Use absolute paths for legacy launcher wrapper support
This commit is contained in:
parent
40b5fb838c
commit
3448a018d3
@ -88,7 +88,7 @@ public final class Launcher {
|
|||||||
public Launcher(@NonNull File baseDir, @NonNull File configDir) throws IOException {
|
public Launcher(@NonNull File baseDir, @NonNull File configDir) throws IOException {
|
||||||
SharedLocale.loadBundle("com.skcraft.launcher.lang.Launcher", Locale.getDefault());
|
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.properties = LauncherUtils.loadProperties(Launcher.class, "launcher.properties", "com.skcraft.launcher.propertiesFile");
|
||||||
this.instances = new InstanceList(this);
|
this.instances = new InstanceList(this);
|
||||||
this.assets = new AssetsRoot(new File(baseDir, "assets"));
|
this.assets = new AssetsRoot(new File(baseDir, "assets"));
|
||||||
@ -392,7 +392,7 @@ public final class Launcher {
|
|||||||
if (dir != null) {
|
if (dir != null) {
|
||||||
log.info("Using given base directory " + dir.getAbsolutePath());
|
log.info("Using given base directory " + dir.getAbsolutePath());
|
||||||
} else {
|
} else {
|
||||||
dir = new File(".");
|
dir = new File("");
|
||||||
log.info("Using current directory " + dir.getAbsolutePath());
|
log.info("Using current directory " + dir.getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user