Exemplo n.º 1
0
        public String ExportTropSFM(bool TropConf)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("<!--Sce-Np-Trophy-Signature: ");
            if (TropConf)
            {
                sb.Append(SceNpTrophySignature_TropConf);
            }
            else
            {
                sb.Append(SceNpTrophySignature);
            }
            sb.Append("-->\n");

            sb.Append("<trophyconf version=\"");
            sb.Append(version);
            sb.Append("\">\n");

            sb.Append(" <npcommid>");
            sb.Append(npcommid);
            sb.Append("</npcommid>\n");

            sb.Append(" <trophyset-version>");
            sb.Append(trophysetversion);
            sb.Append("</trophyset-version>\n");

            sb.Append(" <parental-level license-area=\"");
            sb.Append(parentallevel_licensearea);
            sb.Append("\">");
            sb.Append(parentallevel);
            sb.Append("</parental-level>\n");

            if (!TropConf)
            {
                sb.Append(" <title-name>");
                sb.Append(TitleName);
                sb.Append("</title-name>\n");

                sb.Append(" <title-detail>");
                sb.Append(TitleDetail);
                sb.Append("</title-detail>\n");
            }

            foreach (TrophyNode Trophy in Trophies.Values)
            {
                sb.Append(Trophy.ExportTropSFM(TropConf));
            }

            sb.Append("</trophyconf>\n");

            return(sb.ToString());
        }