[#] 生成补丁数据到新的位置
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -19,7 +20,19 @@ namespace RevokeMsgPatcher.Assistant
|
||||
|
||||
private void FormMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine(new JsonData().BagJson());
|
||||
JsonData obj = new JsonData();
|
||||
string json = obj.BagJson();
|
||||
Console.WriteLine(json);
|
||||
|
||||
DirectoryInfo directory = new DirectoryInfo("../../Data/" + obj.Bag().LatestVersion);
|
||||
if (!directory.Exists)
|
||||
{
|
||||
directory.Create();
|
||||
}
|
||||
string path = Path.Combine(directory.FullName, "patch.json");
|
||||
File.WriteAllText(path, json);
|
||||
|
||||
txtInfo.AppendText("生成完毕!位置:" + path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user