Explorar el Código

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

Bepis hace 4 años
padre
commit
0d702ff967
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 				{