]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix autosave path (#36352)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 14 Apr 2025 10:41:41 +0000 (20:41 +1000)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 10:41:41 +0000 (13:41 +0300)
Asserts on debug due to non-standard path.

Content.Server/Mapping/MappingSystem.cs

index b79387b3e5a4ab52bdbadec75f0718912791df7f..bc086a7aca5d644b9c902007530515bafd9d9572 100644 (file)
@@ -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"));