Skip to content

Commit

Permalink
Relauncher: do not use disable-atfiles for wider compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Apr 6, 2024
1 parent e1db8b0 commit 7d4e9ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,11 @@ public void run() throws IOException {
bootstrapCmd.add("-Xmx256M");
bootstrapCmd.add("-cp");
bootstrapCmd.add(forgePatchesJarPath + File.pathSeparator + myJarPath);
bootstrapCmd.add("--disable-@files");
bootstrapCmd.add("me.eigenraven.lwjgl3ify.relauncherstub.RelauncherStubMain");
bootstrapCmd.add(Long.toString(getCurrentPid()));
bootstrapCmd.add("true");
bootstrapCmd.add(javaPath);
bootstrapCmd.add("@" + argFile);
bootstrapCmd.add(argFile.toString());
}

final ProcessBuilder pb = new ProcessBuilder(bootstrapCmd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Arrays;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
Expand All @@ -22,7 +21,9 @@ public void run(String[] args) throws Throwable {
}
final long parentPid = Long.parseLong(args[0]);
final boolean showConsole = Boolean.parseBoolean(args[1]);
final String[] javaCmdline = Arrays.copyOfRange(args, 2, args.length);
final String javaBinary = args[2];
final String javaArgFile = args[3];
final String[] javaCmdline = new String[] { javaBinary, "@" + javaArgFile };
final ProcessHandle myProcess = ProcessHandle.current();
final ProcessHandle parentProcess = ProcessHandle.of(parentPid)
.orElse(
Expand Down

0 comments on commit 7d4e9ad

Please sign in to comment.