[change] 对2019修改data.unity3d文件时不再备份data.unity32.bak

main
walon 2023-03-16 08:39:47 +08:00
parent 3beb788baa
commit c84f575a2e
1 changed files with 5 additions and 5 deletions

View File

@ -42,11 +42,11 @@ namespace HybridCLR.Editor.UnityBinFileReader
writer.Write(new EndianBinaryWriter(output)); writer.Write(new EndianBinaryWriter(output));
Debug.Log($"patch file:{dataunity3dFile} size:{output.Length}"); Debug.Log($"patch file:{dataunity3dFile} size:{output.Length}");
string bakFile = dataunity3dFile + ".bak"; //string bakFile = dataunity3dFile + ".bak";
if (!File.Exists(bakFile)) //if (!File.Exists(bakFile))
{ //{
File.Copy(dataunity3dFile, bakFile); // File.Copy(dataunity3dFile, bakFile);
} //}
File.WriteAllBytes(dataunity3dFile, output.ToArray()); File.WriteAllBytes(dataunity3dFile, output.ToArray());
} }
} }