-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
48 lines (37 loc) · 1.21 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
using System;
namespace Crowbar
{
public class Program
{
public static App TheApp;
static void Main(string[] args)
{
if (args.Length < 2) {
Console.WriteLine("Args are: \"input/path.mdl\" \"output/path/\"");
Console.WriteLine("Extra args: -v (Verbose)");
return;
}
else
{
bool verbose = false;
for (int i = 2; i < args.Length; i++)
{
switch (args[i]) {
case "-v":
verbose = true;
break;
default:
break;
}
}
TheApp = new App();
TheApp.Init();
TheApp.Verbose = verbose;
args[0] = args[0].Replace("\"","");
args[1] = args[1].Replace("\"","");
TheApp.SetOutputFolder(args[1]);
TheApp.Decompiler.Decompile(args[0]);
}
}
}
}