Common: Allow shared reading of log files

This commit is contained in:
TheLastRar 2025-04-17 19:43:15 +01:00 committed by Ty
parent c6a20961b8
commit c70aba2ca5
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ bool Log::SetFileOutputLevel(LOGLEVEL level, std::string path)
if (!s_file_handle || s_file_path != path)
{
s_file_handle.reset();
s_file_handle = FileSystem::OpenManagedCFile(path.c_str(), "wb");
s_file_handle = FileSystem::OpenManagedSharedCFile(path.c_str(), "wb", FileSystem::FileShareMode::DenyWrite);
if (s_file_handle)
{
s_file_path = std::move(path);