minified-launch/com.dervarex.minified.launch.launch.internal
HeadlessWatcher
@API(status = INTERNAL)
public final class HeadlessWatcherWatches the log of a headless game until it reached the main menu (or crashed), then stops it
Methods
HeadlessWatcher forLaunch(LaunchConfiguration, boolean)int watch(Process)Waits until the game logs one of the headless markers, then stops itpublic static HeadlessWatcher forLaunch(LaunchConfiguration launchConfig, boolean logsNoMarkers)| Parameters | ||
|---|---|---|
launchConfig | LaunchConfiguration | |
logsNoMarkers | boolean | True for versions before 1.6, they get the LWJGL window marker |
| Returns | ||
HeadlessWatcher | ||
public int watch(Process process) throws InterruptedExceptionWaits until the game logs one of the headless markers, then stops it
| Parameters | ||
|---|---|---|
process | Process | |
| Returns | ||
int | 0 if a marker was reached without the game crashing, 124 on timeout, otherwise a non-zero exit code | |
| Throws | ||
InterruptedException | ||