public string getFileFormat() { switch (texFormat) { case "DXT1": case "DXT5": case "V8U8": return ".dds"; case "G8": case "A8R8G8B8": return ".tga"; default: throw new FormatException("Unknown ME3 texture format"); } }