Browse Source

Open disk log with write-only access
Rebase of 1fa25ed

Bepis 4 years ago
parent
commit
0d702ff967
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BepInEx.Core/Logging/DiskLogListener.cs

+ 1 - 1
BepInEx.Core/Logging/DiskLogListener.cs

@@ -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)
 				{