Files
korenkonder_PD_Tool/PD_Tool/classes/DIV.cs
T
korenkonder 85a22ea0f7 Release v0.4.9.9
A3DA, Bloom, Color Correction, DOF, Light, MotHead
2020-11-19 23:22:25 +03:00

31 lines
868 B
C#

using System;
using KKdMainLib.IO;
using KKdSoundLib;
namespace PD_Tool
{
public class DIV
{
public static void Processor()
{
Console.Title = "DIVA Converter";
Program.Choose(1, "diva", out string[] fileNames);
if (fileNames.Length < 1) return;
string filepath, ext;
DIVA diva;
foreach (string file in fileNames)
{
diva = new DIVA();
filepath = Path.RemoveExtension(file);
ext = Path.GetExtension(file).ToLower();
Console.Title = "DIVA Converter: " + Path.GetFileNameWithoutExtension(file);
if (ext == ".diva") diva.DIVAReader(filepath);
else if (ext == ".wav" ) diva.DIVAWriter(filepath);
diva = null;
}
}
}
}