From d049b3638796dc8e1249d9c13b5a4e013703886e Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Sat, 26 Apr 2025 10:03:39 +0700 Subject: [PATCH] Log: Allow read-only access to the log file (#3409) --- src/common/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 2a93b838d..3c8924fe4 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -505,7 +505,7 @@ void Log::SetFileOutputParams(bool enabled, const char* filename, bool timestamp if (enabled) { - s_state.file_handle = FileSystem::OpenManagedCFile(filename, "wb"); + s_state.file_handle = FileSystem::OpenManagedSharedCFile(filename, "wb", FileSystem::FileShareMode::DenyWrite); if (!s_state.file_handle) [[unlikely]] { ExecuteCallbacks(PackCategory(Channel::Log, Level::Error, Color::Default), nullptr,