Files
korenkonder_PD_Tool/PD_Tool/classes/DFT.cs
T
korenkonder 6d80dfd0c9 Release v0.4.8.0
A3DA, Aet, DataBank, DEX, VAG
2019-11-05 10:28:28 +03:00

30 lines
842 B
C#

using System;
using KKdMainLib.IO;
using KKdMainLib.F2;
namespace PD_Tool
{
public class DFT
{
public static void Processor()
{
Console.Title = "DOF Converter";
Program.Choose(1, "dft", out string[] fileNames);
if (fileNames.Length < 1) return;
string filepath, ext;
DOF dft;
foreach (string file in fileNames)
using (dft = new DOF())
{
ext = Path.GetExtension(file);
filepath = file.Replace(ext, "");
ext = ext.ToLower();
Console.Title = "DOF Converter: " + Path.GetFileNameWithoutExtension(file);
if (ext == ".dft") { dft.DFTReader(filepath); dft.TXTWriter(filepath); }
}
}
}
}