mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] May be fix old wrapper's
This commit is contained in:
parent
c438f08d7a
commit
4592aeea2d
2 changed files with 11 additions and 2 deletions
|
@ -34,6 +34,7 @@ public class ClientLauncherProcess {
|
|||
public Path executeFile;
|
||||
public Path workDir;
|
||||
public Path javaDir;
|
||||
public boolean useLegacyJavaClassPathProperty;
|
||||
public boolean isStarted;
|
||||
private transient Process process;
|
||||
|
||||
|
@ -103,9 +104,16 @@ public void start(boolean pipeOutput) throws IOException, InterruptedException {
|
|||
List<String> processArgs = new LinkedList<>();
|
||||
processArgs.add(executeFile.toString());
|
||||
processArgs.addAll(jvmArgs);
|
||||
processArgs.add("-cp");
|
||||
//ADD CLASSPATH
|
||||
processArgs.add(String.join(getPathSeparator(), systemClassPath));
|
||||
if(useLegacyJavaClassPathProperty)
|
||||
{
|
||||
processArgs.add("-Djava.class.path".concat(String.join(getPathSeparator(), systemClassPath)));
|
||||
}
|
||||
else
|
||||
{
|
||||
processArgs.add("-cp");
|
||||
processArgs.add(String.join(getPathSeparator(), systemClassPath));
|
||||
}
|
||||
processArgs.add(mainClass);
|
||||
processArgs.addAll(systemClientArgs);
|
||||
synchronized (waitWriteParams) {
|
||||
|
|
|
@ -34,6 +34,7 @@ public void applyGuardParams(ClientLauncherProcess process) {
|
|||
String projectName = Launcher.getConfig().projectName;
|
||||
String wrapperUnpackName = JVMHelper.JVM_BITS == 64 ? projectName.concat("64.exe") : projectName.concat("32.exe");
|
||||
process.executeFile = DirBridge.getGuardDir().resolve(wrapperUnpackName);
|
||||
process.useLegacyJavaClassPathProperty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue