-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
45 lines (37 loc) · 1.1 KB
/
Copy pathProgram.cs
File metadata and controls
45 lines (37 loc) · 1.1 KB
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
using System;
using System.Text;
namespace YuRis_Tool
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 2)
return;
string yscom;
string ysroot;
if (args.Length >= 3)
{
yscom = args[1];
ysroot = args[2];
}
else
{
yscom = "";
ysroot = args[1];
}
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var ybnKey = BitConverter.GetBytes(CheckSum.CRC32(Encoding.ASCII.GetBytes(args[0])));
Array.Reverse(ybnKey);
//解析错误字符串文件
//var yser = new YSER();
//yser.Load(@"C:\Users\Shiroha\Desktop\渡り鳥のソムニウム\ysbin\yse.ybn");
//解析系统变量定义
if(!string.IsNullOrEmpty(yscom))
YSCD.Load(yscom);
var yuris = new YuRisScript();
yuris.Init(ysroot, ybnKey);
yuris.DecompileProject();
}
}
}