Make use of new WritableDirProvider APIs to improve file sharing and simplify code.

This commit is contained in:
Pieter-Jan Briers
2020-08-16 01:12:30 +02:00
parent 4d1538da1a
commit 05cf8303e4
3 changed files with 8 additions and 13 deletions

View File

@@ -57,7 +57,7 @@ namespace Content.Client
}
await using var file =
_resourceManager.UserData.Open(BaseScreenshotPath / $"{filename}.png", FileMode.CreateNew);
_resourceManager.UserData.Open(BaseScreenshotPath / $"{filename}.png", FileMode.CreateNew, FileAccess.Read, FileShare.None);
await Task.Run(() =>
{