Unstable 1.8.4.0

This commit is contained in:
Markus Isberg
2025-03-12 12:56:27 +00:00
parent a4c3e868e4
commit a4a3427e4e
627 changed files with 29860 additions and 10018 deletions

View File

@@ -169,9 +169,9 @@ namespace Barotrauma
return doc;
}
public void Save(string path)
public void Save(string path, bool catchUnauthorizedAccessExceptions = true)
{
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
Directory.CreateDirectory(Path.GetDirectoryName(path)!, catchUnauthorizedAccessExceptions);
ToXDocument().SaveSafe(path);
}
}