public void parseProcessState(ProcessState s) {
        int exitCode = s.exitCode;

        if (exitCode != 0 && !expectExit) {
            JOptionPane.showMessageDialog(this, "Launched game process unexpectedly exited with code: " + exitCode, "Process died", JOptionPane.ERROR_MESSAGE);
        }

        btnLaunch.setText("Launch");
        this.process = null;
        this.expectExit = false;
    }