This commit is contained in:
sin365 2023-03-24 09:13:59 +08:00
parent 8988853ecb
commit b737122a64

View File

@ -32,13 +32,13 @@
string FileName = files[i].Substring(files[i].LastIndexOf("\\")); string FileName = files[i].Substring(files[i].LastIndexOf("\\"));
if (!FileName.ToLower().Contains(".mib") && !FileName.ToLower().Contains(".bin")) if (!FileName.ToLower().Contains(".mib") && !FileName.ToLower().Contains(".bin"))
{ {
return; continue;
} }
index++; index++;
FileHelper.LoadFile(files[i], out byte[] data); FileHelper.LoadFile(files[i], out byte[] data);
if (ModifyQuest.ModifyFile(data, out byte[] targetdata)) if (ModifyQuest.ModifyFile(data, out byte[] targetdata))
{ {
string newfileName = FileName + "_unpack"; string newfileName = FileName + "_fix";
string outstring = loc + OutDir + "\\" + newfileName; string outstring = loc + OutDir + "\\" + newfileName;
FileHelper.SaveFile(outstring, targetdata); FileHelper.SaveFile(outstring, targetdata);
Console.WriteLine($"成功已处理 第{index}个:{outstring}"); Console.WriteLine($"成功已处理 第{index}个:{outstring}");