Use full file path for temp replays (#19002)

This commit is contained in:
Morb
2023-09-07 06:56:33 +03:00
committed by GitHub
parent caddfda2b2
commit 610a10fb85

View File

@@ -43,9 +43,7 @@ public sealed partial class GameTicker
{
var baseReplayPath = new ResPath(_cfg.GetCVar(CVars.ReplayDirectory)).ToRootedPath();
moveToPath = baseReplayPath / finalPath;
var fileName = finalPath.Filename;
recordPath = new ResPath(tempDir) / fileName;
recordPath = new ResPath(tempDir) / finalPath;
_sawmillReplays.Debug($"Replay will record in temporary position: {recordPath}");
}