Beispiel #1
0
        /// <summary>
        /// Write out DAT header using the supplied StreamWriter
        /// </summary>
        /// <param name="svw">SeparatedValueWriter to output to</param>
        private void WriteHeader(SeparatedValueWriter svw)
        {
            string[] headers = new string[]
            {
                "#Name",
                "Title",
                "Emulator",
                "CloneOf",
                "Year",
                "Manufacturer",
                "Category",
                "Players",
                "Rotation",
                "Control",
                "Status",
                "DisplayCount",
                "DisplayType",
                "AltRomname",
                "AltTitle",
                "Extra",
                "Buttons",
            };

            svw.WriteHeader(headers);

            svw.Flush();
        }
        /// <summary>
        /// Write out DAT header using the supplied StreamWriter
        /// </summary>
        /// <param name="svw">SeparatedValueWriter to output to</param>
        private void WriteHeader(SeparatedValueWriter svw)
        {
            string[] headers = new string[]
            {
                "File Name",
                "Internal Name",
                "Description",
                "Game Name",
                "Game Description",
                "Type",
                "Rom Name",
                "Disk Name",
                "Size",
                "CRC",
                "MD5",
                //"RIPEMD160",
                "SHA1",
                "SHA256",
                //"SHA384",
                //"SHA512",
                //"SpamSum",
                "Nodump",
            };

            svw.WriteHeader(headers);

            svw.Flush();
        }
 /// <summary>
 /// Write out the header to the stream, if any exists
 /// </summary>
 /// <param name="svw">SeparatedValueWriter to write to</param>
 /// <param name="baddumpCol">True if baddumps should be included in output, false otherwise</param>
 /// <param name="nodumpCol">True if nodumps should be included in output, false otherwise</param>
 private void WriteHeader(SeparatedValueWriter svw, bool baddumpCol, bool nodumpCol)
 {
     string[] headers = new string[]
     {
         "File Name",
         "Total Size",
         "Games",
         "Roms",
         "Disks",
         "# with CRC",
         "# with MD5",
         "# with SHA-1",
         "# with SHA-256",
         "# with SHA-384",
         "# with SHA-512",
         baddumpCol ? "BadDumps" : string.Empty,
         nodumpCol ? "Nodumps" : string.Empty,
     };
     svw.WriteHeader(headers);
     svw.Flush();
 }