Browse Source

Open disk log with write-only access

ghorsington 4 năm trước cách đây
mục cha
commit
1fa25edf4b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      BepInEx/Logging/DiskLogListener.cs

+ 1 - 1
BepInEx/Logging/DiskLogListener.cs

@@ -26,7 +26,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)
 				{