Make use of new WritableDirProvider APIs to improve file sharing and simplify code.
This commit is contained in:
@@ -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(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user