mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Optimize RPCS3.log and limit it to 64 MiB
Use memory-mapped file for writing
This commit is contained in:
parent
1716db14ed
commit
025a09ed87
3 changed files with 51 additions and 5 deletions
|
@ -25,6 +25,7 @@ namespace fs
|
|||
create,
|
||||
trunc,
|
||||
excl,
|
||||
unshare,
|
||||
|
||||
__bitset_enum_max
|
||||
};
|
||||
|
@ -35,6 +36,7 @@ namespace fs
|
|||
constexpr auto create = +open_mode::create; // Create file if it doesn't exist
|
||||
constexpr auto trunc = +open_mode::trunc; // Clear opened file if it's not empty
|
||||
constexpr auto excl = +open_mode::excl; // Failure if the file already exists (used with `create`)
|
||||
constexpr auto unshare = +open_mode::unshare; // Prevent opening the file twice
|
||||
|
||||
constexpr auto rewrite = open_mode::write + open_mode::create + open_mode::trunc;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue