소스 검색

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

Bepis 4 년 전
부모
커밋
0d702ff967
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 				{