From: Pieter-Jan Briers Date: Thu, 28 Sep 2023 10:49:49 +0000 (+0200) Subject: Revert "Use full file path for temp replays (#19002)" (#20545) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bc218347a89036045ea0899b114728be7e9ede13;p=space-station-14.git Revert "Use full file path for temp replays (#19002)" (#20545) --- diff --git a/Content.Server/GameTicking/GameTicker.Replays.cs b/Content.Server/GameTicking/GameTicker.Replays.cs index 42e2de0228..03cf748d09 100644 --- a/Content.Server/GameTicking/GameTicker.Replays.cs +++ b/Content.Server/GameTicking/GameTicker.Replays.cs @@ -43,7 +43,9 @@ public sealed partial class GameTicker { var baseReplayPath = new ResPath(_cfg.GetCVar(CVars.ReplayDirectory)).ToRootedPath(); moveToPath = baseReplayPath / finalPath; - recordPath = new ResPath(tempDir) / finalPath; + + var fileName = finalPath.Filename; + recordPath = new ResPath(tempDir) / fileName; _sawmillReplays.Debug($"Replay will record in temporary position: {recordPath}"); }