private void initLaunch() {
        misc.changes();
        String customParam = customParamJTtextArea.getText() + " " + misc.miscParam;
        // Printer.print(customParam.length());
        if (customParam.length() > 0) {
            customParametersArg = customParam.split(" ");
        }

        argsPB = new String[calculateARGSLength()];
        argsPB[LAUNCH_CMD_ARG_ENGINE] = files.engine[jComboBoxEngines.getSelectedIndex()].getAbsolutePath();
        if (files.getIWADCount() > 0) {
            argsPB[LAUNCH_CMD_ARG_IWAD] = "-iwad";
            argsPB[LAUNCH_CMD_ARG_IWADPATH] = files.iwads[jComboBoxIwads.getSelectedIndex()].getAbsolutePath();
        }

        if (files.getPWADCount() > 0) {
            int pwadID = 0;
            argsPB[LAUNCH_CMD_ARG_FILE] = "-file";
            for (int i = LAUNCH_CMD_ARG_FILEPATH; i < LAUNCH_CMD_ARG_FILEPATH + files.pwad.length; i++) {
                argsPB[i] = files.pwad[pwadID].getAbsolutePath();
                Printer.print(i + " pwad " + pwadID);
                pwadID++;

            }
        }
        if (customParam.length() > 0) {
            String[] buffer = argsPB;
            // Printer.print(customParametersArg.length);
            argsPB = new String[calculateARGSLength() + customParametersArg.length];
            for (int i = 0; i < argsPB.length; i++) {
                if (i < buffer.length) {
                    argsPB[i] = buffer[i];
                } else {
                    argsPB[i] = customParametersArg[i - buffer.length];
                }
            }
        }

    }