mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
parent
8efdc536ee
commit
1187ae4f04
@ -102,7 +102,7 @@ public class DefaultLauncher extends Launcher {
|
|||||||
|
|
||||||
// Executable
|
// Executable
|
||||||
if (StringUtils.isNotBlank(options.getWrapper()))
|
if (StringUtils.isNotBlank(options.getWrapper()))
|
||||||
res.addAllWithoutParsing(StringUtils.tokenize(options.getWrapper()));
|
res.addAllWithoutParsing(StringUtils.tokenize(options.getWrapper(), getEnvVars()));
|
||||||
|
|
||||||
res.add(options.getJava().getBinary().toString());
|
res.add(options.getJava().getBinary().toString());
|
||||||
|
|
||||||
@ -429,9 +429,6 @@ public class DefaultLauncher extends Launcher {
|
|||||||
|
|
||||||
// To guarantee that when failed to generate launch command line, we will not call pre-launch command
|
// To guarantee that when failed to generate launch command line, we will not call pre-launch command
|
||||||
List<String> rawCommandLine = command.commandLine.asList();
|
List<String> rawCommandLine = command.commandLine.asList();
|
||||||
if (StringUtils.isNotBlank(options.getWrapper())) {
|
|
||||||
rawCommandLine.addAll(0, StringUtils.tokenize(options.getWrapper(), getEnvVars()));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (command.tempNativeFolder != null) {
|
if (command.tempNativeFolder != null) {
|
||||||
Files.deleteIfExists(command.tempNativeFolder);
|
Files.deleteIfExists(command.tempNativeFolder);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user