From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 14 Apr 2025 10:41:41 +0000 (+1000) Subject: Fix autosave path (#36352) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=595b1f50735fffdcb0f619bd94af806a8b3ab641;p=space-station-14.git Fix autosave path (#36352) Asserts on debug due to non-standard path. --- diff --git a/Content.Server/Mapping/MappingSystem.cs b/Content.Server/Mapping/MappingSystem.cs index b79387b3e5..bc086a7aca 100644 --- a/Content.Server/Mapping/MappingSystem.cs +++ b/Content.Server/Mapping/MappingSystem.cs @@ -73,7 +73,7 @@ public sealed class MappingSystem : EntitySystem } _currentlyAutosaving[uid] = (CalculateNextTime(), name); - var saveDir = Path.Combine(_cfg.GetCVar(CCVars.AutosaveDirectory), name); + var saveDir = Path.Combine(_cfg.GetCVar(CCVars.AutosaveDirectory), name).Replace(Path.DirectorySeparatorChar, '/'); _resMan.UserData.CreateDir(new ResPath(saveDir).ToRootedPath()); var path = new ResPath(Path.Combine(saveDir, $"{DateTime.Now:yyyy-M-dd_HH.mm.ss}-AUTO.yml"));