[change] 对2019修改data.unity3d文件时不再备份data.unity32.bak
parent
3beb788baa
commit
c84f575a2e
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue