|
|
|
@ -34,7 +34,7 @@ namespace WpfApp2.ScnToJson
|
|
|
|
|
|
|
|
|
|
public void DirExsis(string id)
|
|
|
|
|
{
|
|
|
|
|
if(!Directory.Exists(Directory.GetCurrentDirectory() + "\\" + id))
|
|
|
|
|
if (Directory.Exists(Directory.GetCurrentDirectory() + "\\" + id))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(Directory.GetCurrentDirectory() + "\\" + id);
|
|
|
|
|
}
|
|
|
|
@ -59,6 +59,25 @@ namespace WpfApp2.ScnToJson
|
|
|
|
|
p.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void JsonToScn(string srcgame, string srcjson, string dstgame)
|
|
|
|
|
{
|
|
|
|
|
string temp = ".\\VNTextPatch insertlocal " + srcgame + " " + srcjson + " " + dstgame;
|
|
|
|
|
|
|
|
|
|
var p = new Process
|
|
|
|
|
{
|
|
|
|
|
StartInfo =
|
|
|
|
|
{
|
|
|
|
|
FileName = "PowerShell.exe",
|
|
|
|
|
Arguments = "/c " + cmdHandle + "\n" + temp,
|
|
|
|
|
UseShellExecute = false,
|
|
|
|
|
CreateNoWindow = false,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
p.Start();
|
|
|
|
|
p.WaitForExit();
|
|
|
|
|
p.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|