From b81b2470ef9f0520c0007668c9627140d5a548f8 Mon Sep 17 00:00:00 2001 From: cubewhy Date: Thu, 18 Jan 2024 13:39:39 +0800 Subject: [PATCH] posix support --- src/main/java/org/cubewhy/celestial/Celestial.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cubewhy/celestial/Celestial.java b/src/main/java/org/cubewhy/celestial/Celestial.java index a3f6aa44..f3be0106 100644 --- a/src/main/java/org/cubewhy/celestial/Celestial.java +++ b/src/main/java/org/cubewhy/celestial/Celestial.java @@ -413,7 +413,11 @@ public static GameArgsResult getArgs(String version, String branch, String modul natives = new File(installation, artifact.getAsJsonObject().get("name").getAsString()); } } - args.add(String.join(";", classpath)); + if (OSEnum.getCurrent().equals(OSEnum.Windows)) { + args.add(String.join(";", classpath)); + } else { + args.add(String.join(":", classpath)); + } // === main class === args.add(LauncherData.getMainClass(json)); // === game args ===