cw.write("soundmute " + soundMute + "\r\n"); cw.write("soundbingfilename \"" + soundBingFilename + "\"\r\n");
    public static void save() {        // yay! file stuff!        try {            File cfgfile = new File(cfgFileName);            Writer cw = new FileWriter(cfgfile);                        cw.write("# MegaMek config file" + "\r\n");            cw.write("# Edit at your own risk" + "\r\n");            cw.write("\r\n");            cw.write("windowpos " + windowPosX + " " + windowPosY + "\r\n");            cw.write("windowsize " + windowSizeWidth + " " + windowSizeHeight + "\r\n");            cw.write("minimapenabled " + minimapEnabled + "\r\n");            cw.write("minimappos " + minimapPosX + " " + minimapPosY + "\r\n");            cw.write("minimapsize " + minimapSizeWidth + " " + minimapSizeHeight + "\r\n");            cw.write("displaypos " + displayPosX + " " + displayPosY + "\r\n");            cw.write("displaysize " + displaySizeWidth + " " + displaySizeHeight + "\r\n");            cw.write("autoendfiring " + autoEndFiring + "\r\n");            cw.write("nagformasc " + nagForMASC + "\r\n");            cw.write("nagforpsr " + nagForPSR + "\r\n");            cw.write("playername " + "\"" + lastPlayerName + "\"" + "\r\n");            cw.write("server " + "\"" + lastServerPass + "\" " + lastServerPort + "\r\n");            cw.write("connect " + "\"" + lastConnectAddr + "\" " + lastConnectPort + "\r\n");            cw.write("maptext " + writeColor(mapTextColor) + "\r\n");            cw.write("movedefault " + writeColor(moveDefaultColor) + "\r\n");            cw.write("moverun " + writeColor(moveRunColor) + "\r\n");            cw.write("movejump " + writeColor(moveJumpColor) + "\r\n");            cw.write("moveillegal " + writeColor(moveIllegalColor) + "\r\n");            cw.write("movemasc " + writeColor(moveMASCColor) + "\r\n");            cw.write("maptileset \"" + mapTileset + "\"\r\n");            cw.write("showmovestep " + showMoveStep + "\r\n");            cw.write("movestepdelay " + moveStepDelay + "\r\n");            cw.write("showwrecks " + showWrecks + "\r\n");            if ( mekHitLocLog != null ) {                mekHitLocLog.flush();                mekHitLocLog.close();                cw.write("mekhitloclog \"" + mekHitLocLogName + "\"\r\n");            }                        cw.close();        } catch(Exception e) {            System.err.println(e.getMessage());        }    }