Open disk log with write-only access

Rebase of 1fa25ed
This commit is contained in:
Bepis committed 2020-11-05 23:54:28 +11:00
1 parent 3383c5c584
commit 0d702ff967
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ namespace BepInEx.Logging
FileStream fileStream;
while (!Utility.TryOpenFileStream(Path.Combine(Paths.BepInExRootPath, localPath), appendLog ? FileMode.Append : FileMode.Create, out fileStream, share: FileShare.Read))
while (!Utility.TryOpenFileStream(Path.Combine(Paths.BepInExRootPath, localPath), appendLog ? FileMode.Append : FileMode.Create, out fileStream, share: FileShare.Read, access: FileAccess.Write))
{
if (counter == 5)
{