Fix screenshots crashing due to bad FileAccess

This commit is contained in:
Pieter-Jan Briers
2020-09-01 23:53:49 +02:00
parent 2aed70befe
commit f5cba6ae89

View File

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