shiftskn-rewind/shiftskn/Decode.cs
AShifter 70d9df993d Add (unfinished) code
I think this one can decompile 0.0.x skins, not sure... Maybe I should
check?
2018-02-12 09:10:20 -07:00

20 lines
653 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text;
namespace shiftskn
{
public abstract class Decode
{
public static void DecodeSkinToDir(string inputFile, string outputPath)
{
string folderName = @"\" + Path.GetFileNameWithoutExtension(inputFile);
outputPath = outputPath.TrimEnd(Path.DirectorySeparatorChar);
outputPath = outputPath + folderName;
ZipFile.ExtractToDirectory(inputFile, outputPath);
Console.WriteLine("Extracted " + Path.GetFileName(inputFile) + " to " + outputPath);
}
}
}