diff options
| author | AShifter <[email protected]> | 2018-02-12 09:10:20 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2018-02-12 09:10:20 -0700 |
| commit | 70d9df993db283d38f5441d0d0f47b5803020630 (patch) | |
| tree | 2b3605c76ce04d0ec7bc337d1cd70669f3920528 /shiftskn/Program.cs | |
| parent | d078e1089c8d1f0efc14c2461017ff244cc3031e (diff) | |
| download | shiftskn-rewind-master.tar.gz shiftskn-rewind-master.tar.bz2 shiftskn-rewind-master.zip | |
I think this one can decompile 0.0.x skins, not sure... Maybe I should
check?
Diffstat (limited to 'shiftskn/Program.cs')
| -rw-r--r-- | shiftskn/Program.cs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/shiftskn/Program.cs b/shiftskn/Program.cs new file mode 100644 index 0000000..4631523 --- /dev/null +++ b/shiftskn/Program.cs @@ -0,0 +1,59 @@ +using System; +using System.IO; +using System.IO.Compression; + +namespace shiftskn +{ + class Program + { + static void Main(string[] args) + { + // Variable Declarations + int argsLength = args.Length; + + if (argsLength < 2) + { + ShowHelp(); + } + + if (argsLength >= 2) + { + if (args[0] == "picpng") + { + try + { + if (args.Length >= 3) + { + Pic2PNG.Convert(args[1], args[2]); + } + Pic2PNG.Convert(args[1]); + } + catch + { + ShowHelp(); + } + } + else if (args[0] == "decode") + { + try + { + Decode.DecodeSkinToDir(args[1], args[2]); + } + catch + { + ShowHelp(); + } + } + else + { + ShowHelp(); + } + } + } + + static void ShowHelp() + { + Help.PrintHelp(); + } + } +}
\ No newline at end of file |
