From 70d9df993db283d38f5441d0d0f47b5803020630 Mon Sep 17 00:00:00 2001 From: AShifter Date: Mon, 12 Feb 2018 09:10:20 -0700 Subject: Add (unfinished) code I think this one can decompile 0.0.x skins, not sure... Maybe I should check? --- shiftskn/Decode.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 shiftskn/Decode.cs (limited to 'shiftskn/Decode.cs') diff --git a/shiftskn/Decode.cs b/shiftskn/Decode.cs new file mode 100644 index 0000000..4041a6a --- /dev/null +++ b/shiftskn/Decode.cs @@ -0,0 +1,20 @@ +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); + } + } +} -- cgit v1.2.3