mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
fs: Add fs::write_new, promotes safe file creation (no overwrite)
This commit is contained in:
parent
75e66ab5e0
commit
24e76f2960
@ -45,7 +45,8 @@ namespace fs
|
||||
constexpr auto lock = +open_mode::lock; // Prevent opening the file more than once
|
||||
constexpr auto unread = +open_mode::unread; // Aggressively prevent reading the opened file (do not use)
|
||||
|
||||
constexpr auto rewrite = open_mode::write + open_mode::create + open_mode::trunc;
|
||||
constexpr auto write_new = write + create + excl;
|
||||
constexpr auto rewrite = write + create + trunc;
|
||||
|
||||
// File seek mode
|
||||
enum class seek_mode : u32
|
||||
|
Loading…
Reference in New Issue
Block a user