-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathProgram.cs
50 lines (43 loc) · 1.09 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
namespace VprUnpack
{
class Program
{
static void VPR_Unpack (string vpr)
{
string path = vpr;
string dir = Path.GetDirectoryName(path) + "\\" + Path.GetFileNameWithoutExtension(path);
Directory.CreateDirectory(dir);
(new FastZip()).ExtractZip(path, dir, "");
VentuzProjectBuilding ventuz = new VentuzProjectBuilding(dir);
ventuz.Building();
}
static void Main(string[] args)
{
Console.WriteLine("VPR UnPack 1.0 - For Ventuz5 Ventuz6");
string cd = Directory.GetCurrentDirectory();
string[] files = args;
if (files.Length == 0)
{
files = Directory.GetFiles(cd, "*.vpr");
}
for (int i = 0; i < files.Length; i++)
{
Directory.SetCurrentDirectory(cd);
Console.WriteLine("unpack[{0}/{1}] : {2}", i+1, files.Length,files[i]);
try
{
VPR_Unpack(files[i]);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
}
}
}