From: Morb <14136326+Morb0@users.noreply.github.com> Date: Thu, 7 Sep 2023 03:56:33 +0000 (+0300) Subject: Use full file path for temp replays (#19002) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=610a10fb85e03b88f6288f9328aaf9f00eacbae5;p=space-station-14.git Use full file path for temp replays (#19002) --- diff --git a/Content.Server/GameTicking/GameTicker.Replays.cs b/Content.Server/GameTicking/GameTicker.Replays.cs index a9df697647..3254fb840d 100644 --- a/Content.Server/GameTicking/GameTicker.Replays.cs +++ b/Content.Server/GameTicking/GameTicker.Replays.cs @@ -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}"); }