public boolean parsePatch(File f, String patch) {
        String s = null;
        boolean result = false;
        if(patch.equalsIgnoreCase(CARRIER_PATCH)) {
            s = findReturn(f, "this.carrierText = \"");
            if(s!=null) {
                carrierString = s.substring(s.indexOf("\"")+1, s.lastIndexOf("\""));
                result = true;
            }
        } else if(patch.equalsIgnoreCase(TEXTCOLOUR_PATCH)) {
            s = findReturn(f, "color:");
            if(s!=null) {
                s = s.substring(s.indexOf(":")+1, s.indexOf(";")).trim();
                textColour = Color.decode(s);
                result = true;
            }
        } else if(patch.equalsIgnoreCase(OPACITY_PATCH)) {
            s = findReturn(f, "opacity:");
            if(s!=null) {
                s = s.substring(s.indexOf(":")+1, s.indexOf(";")).trim();
                opacity = (int)(Double.parseDouble(s)*100);
                result = true;
            }
        }
        return result;
    }