Remove arguments being passed twice
Passing the classpath into stdin has no effect. Java is already provided the classpath with -cp, which pretty much takes up the largest part of the arguments anyway, which leads me to wonder, what's the point of stdin arguments at all? Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
1da834f650
commit
9931c9a286
@ -629,21 +629,6 @@ QString MinecraftInstance::createLaunchScript(AuthSessionPtr session, MinecraftS
|
||||
launchScript += "sessionId " + session->session + "\n";
|
||||
}
|
||||
|
||||
// libraries and class path.
|
||||
{
|
||||
QStringList jars, nativeJars;
|
||||
profile->getLibraryFiles(runtimeContext(), jars, nativeJars, getLocalLibraryPath(), binRoot());
|
||||
for(auto file: jars)
|
||||
{
|
||||
launchScript += "cp " + file + "\n";
|
||||
}
|
||||
for(auto file: nativeJars)
|
||||
{
|
||||
launchScript += "ext " + file + "\n";
|
||||
}
|
||||
launchScript += "natives " + getNativePath() + "\n";
|
||||
}
|
||||
|
||||
for (auto trait : profile->getTraits())
|
||||
{
|
||||
launchScript += "traits " + trait + "\n";
|
||||
|
@ -81,7 +81,6 @@ public final class EntryPoint {
|
||||
if (exitCode != ExitCode.NORMAL) {
|
||||
LOGGER.warning("Exiting with " + exitCode);
|
||||
|
||||
// noinspection CallToSystemExit
|
||||
System.exit(exitCode.numericalCode);
|
||||
}
|
||||
}
|
||||
@ -97,6 +96,7 @@ public final class EntryPoint {
|
||||
return PreLaunchAction.ABORT;
|
||||
else {
|
||||
String[] pair = StringUtils.splitStringPair(' ', input);
|
||||
|
||||
if (pair == null)
|
||||
throw new ParseException(String.format(
|
||||
"Could not split input string '%s' by space. All input provided from stdin must be either 'launch', 'abort', or "
|
||||
|
Loading…
Reference in New Issue
Block a user