Move temp file gen for File.Replace to separate file

This commit is contained in:
Soreepeong 2024-06-05 00:29:15 +09:00
parent e144956a48
commit 729795ff9e
2 changed files with 25 additions and 1 deletions

View file

@ -90,7 +90,7 @@ internal sealed partial class TextureManager
throw new NullReferenceException($"{nameof(path)} cannot be null.");
using var wrapAux = new WrapAux(wrap, true);
var pathTemp = $"{path}.{GetCurrentThreadId():X08}{Environment.TickCount64:X16}.tmp";
var pathTemp = Util.GetTempFileNameForFileReplacement(path);
var trashfire = new List<Exception>();
try
{