mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Ещё 1 подарочек...
This commit is contained in:
parent
555c6a6c0b
commit
29ed4c5cf7
1 changed files with 7 additions and 0 deletions
|
@ -414,9 +414,16 @@ public static Process launch(
|
||||||
builder.redirectErrorStream(true);
|
builder.redirectErrorStream(true);
|
||||||
builder.redirectOutput(Redirect.PIPE);
|
builder.redirectOutput(Redirect.PIPE);
|
||||||
}
|
}
|
||||||
|
List<String> command = builder.command();
|
||||||
// Let's rock!
|
// Let's rock!
|
||||||
ClientHookManager.preStartHook.hook(context, builder);
|
ClientHookManager.preStartHook.hook(context, builder);
|
||||||
process = builder.start();
|
process = builder.start();
|
||||||
|
if (builder.command() != command) {
|
||||||
|
LogHelper.error("Something strange cheating...");
|
||||||
|
System.exit(100);
|
||||||
|
clientStarted = false;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if(ClientHookManager.postStartHook.hook(context, builder)) return process;
|
if(ClientHookManager.postStartHook.hook(context, builder)) return process;
|
||||||
if (!pipeOutput) {
|
if (!pipeOutput) {
|
||||||
for (int i = 0; i < 50; ++i) {
|
for (int i = 0; i < 50; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue