using System; using System.Collections.Generic; using System.Text; namespace DSDecmp.Formats.Nitro { /// /// A composite format with all formats supported natively by the GBA. /// public class CompositeGBAFormat : CompositeFormat { /// /// Creates a new instance of the format composed of all native GBA compression formats. /// public CompositeGBAFormat() : base(new Huffman4(), new Huffman8(), new LZ10()) { } /// /// Gets a short string identifying this compression format. /// public override string ShortFormatString { get { return "GBA"; } } /// /// Gets a short description of this compression format (used in the program usage). /// public override string Description { get { return "All formats natively supported by the GBA."; } } /// /// Gets if this format supports compressing a file. /// public override bool SupportsCompression { get { return true; } } /// /// Gets the value that must be given on the command line in order to compress using this format. /// public override string CompressionFlag { get { return "gba*"; } } } /// /// A composite format with all formats supported natively by the NDS (but not LZ-Overlay) /// public class CompositeNDSFormat : CompositeFormat { /// /// Creates a new instance of the format composed of all native NDS compression formats. /// public CompositeNDSFormat() : base(new Huffman4(), new Huffman8(), new LZ10(), new LZ11()) { } /// /// Gets a short string identifying this compression format. /// public override string ShortFormatString { get { return "NDS"; } } /// /// Gets a short description of this compression format (used in the program usage). /// public override string Description { get { return "All formats natively supported by the NDS."; } } /// /// Gets if this format supports compressing a file. /// public override bool SupportsCompression { get { return true; } } /// /// Gets the value that must be given on the command line in order to compress using this format. /// public override string CompressionFlag { get { return "nds*"; } } } }