Quellcode durchsuchen

Open disk log with write-only access

ghorsington vor 4 Jahren
Ursprung
Commit
1fa25edf4b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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)
 				{