aboutsummaryrefslogtreecommitdiff
path: root/shiftskn/Decode.cs
blob: 4041a6ae00879bd8f9b5ea37c484cc71220663cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
        }
    }
}