Files
korenkonder ec5f8c803e Release v0.4.10.11
A3DA, DIVAFILE, MotHead
2022-03-10 21:29:09 +03:00

31 lines
831 B
C#

using KKdMainLib;
using KKdMainLib.IO;
namespace PD_Tool
{
public class DIVAFILE
{
public static void Decrypt(string file)
{
Stream reader = File.OpenReader(file);
ulong head = reader.RU64();
reader.C();
if (head != 0x454C494641564944) return;
System.Console.Title = "DIVAFILE Decrypt: " + Path.GetFileName(file);
KKdMainLib.DIVAFILE.Decrypt(file);
}
public static void Encrypt(string file)
{
Stream reader = File.OpenReader(file);
ulong head = reader.RU64();
reader.C();
if (head == 0x454C494641564944) return;
System.Console.Title = "DIVAFILE Encrypt: " + Path.GetFileName(file);
KKdMainLib.DIVAFILE.Encrypt(file);
}
}
}