mirror of
https://github.com/ShiftOS-Rewind/shiftskn.git
synced 2025-01-22 03:11:47 -05:00
70d9df993d
I think this one can decompile 0.0.x skins, not sure... Maybe I should check?
20 lines
653 B
C#
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);
|
|
}
|
|
}
|
|
}
|