mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Небольшая чистка кода ClientLauncher.
This commit is contained in:
parent
358e92ad9e
commit
9456c45a3d
1 changed files with 4 additions and 4 deletions
|
@ -348,14 +348,14 @@ public static Process launch(
|
||||||
// Add classpath and main class
|
// Add classpath and main class
|
||||||
String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString();
|
String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString();
|
||||||
context.pathLauncher = pathLauncher;
|
context.pathLauncher = pathLauncher;
|
||||||
Collections.addAll(context.args, ClientLauncherWrapper.MAGIC_ARG);
|
context.args.add(ClientLauncherWrapper.MAGIC_ARG);
|
||||||
Collections.addAll(context.args, profile.getJvmArgs());
|
Collections.addAll(context.args, profile.getJvmArgs());
|
||||||
profile.pushOptionalJvmArgs(context.args);
|
profile.pushOptionalJvmArgs(context.args);
|
||||||
Collections.addAll(context.args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path
|
context.args.add("-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path
|
||||||
Collections.addAll(context.args, "-javaagent:".concat(pathLauncher));
|
context.args.add("-javaagent:".concat(pathLauncher));
|
||||||
ClientHookManager.clientLaunchHook.hook(context);
|
ClientHookManager.clientLaunchHook.hook(context);
|
||||||
LauncherGuardManager.guard.addCustomParams(context);
|
LauncherGuardManager.guard.addCustomParams(context);
|
||||||
Collections.addAll(context.args, ClientLauncher.class.getName());
|
context.args.add(ClientLauncher.class.getName());
|
||||||
ClientHookManager.clientLaunchFinallyHook.hook(context);
|
ClientHookManager.clientLaunchFinallyHook.hook(context);
|
||||||
|
|
||||||
// Print commandline debug message
|
// Print commandline debug message
|
||||||
|
|
Loading…
Reference in a new issue