mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
Log: Allow read-only access to the log file (#3409)
This commit is contained in:
parent
611bb8fb4f
commit
d049b36387
@ -505,7 +505,7 @@ void Log::SetFileOutputParams(bool enabled, const char* filename, bool timestamp
|
|||||||
|
|
||||||
if (enabled)
|
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]]
|
if (!s_state.file_handle) [[unlikely]]
|
||||||
{
|
{
|
||||||
ExecuteCallbacks(PackCategory(Channel::Log, Level::Error, Color::Default), nullptr,
|
ExecuteCallbacks(PackCategory(Channel::Log, Level::Error, Color::Default), nullptr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user