Feat[jar launcher]: add log output
- rename 'Install .jar' to 'Execute .jar'
This commit is contained in:
1 parent
b48cecad94
commit
8bf56d7443
18 files changed
+260
-240
No files matched your search
@@ -49,7 +49,7 @@ public class PojavLauncher {
|
||||
Class.forName("com.github.caciocavallosilano.cacio.ctc.CTCPreloadClassLoader");
|
||||
} catch (ClassNotFoundException e) {}
|
||||
|
||||
if (args[0].equals(".LaunchJAR")) {
|
||||
if (args[0].equals("--launchJar")) {
|
||||
UIKit.callback_JavaGUIViewController_launchJarFile(args[1]);
|
||||
} else {
|
||||
launchMinecraft(args);
|
||||
|
||||
@@ -51,8 +51,6 @@ public final class Tools {
|
||||
|
||||
public static final String ASSETS_PATH = DIR_GAME_NEW + "/assets";
|
||||
public static final String OBSOLETE_RESOURCES_PATH=DIR_GAME_NEW + "/resources";
|
||||
|
||||
public static final String NATIVE_LIB_DIR = "@executable_path/Frameworks";
|
||||
|
||||
public static void launchMinecraft(MinecraftAccount profile, final JMinecraftVersionList.Version versionInfo) throws Throwable {
|
||||
String[] launchArgs = getMinecraftArgs(profile, versionInfo);
|
||||
@@ -103,7 +101,7 @@ public final class Tools {
|
||||
varArgMap.put("user_type", "msa");
|
||||
varArgMap.put("version_name", versionName);
|
||||
varArgMap.put("version_type", versionInfo.type);
|
||||
varArgMap.put("natives_directory", Tools.NATIVE_LIB_DIR);
|
||||
varArgMap.put("natives_directory", System.getProperty("java.library.path"));
|
||||
|
||||
List<String> minecraftArgs = new ArrayList<String>();
|
||||
if (versionInfo.arguments != null) {
|
||||
|
||||
Reference in new issue
Block a user