1
0
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:
Eladash 2021-10-09 21:07:52 +03:00 committed by Megamouse
parent 75e66ab5e0
commit 24e76f2960

View File

@ -45,7 +45,8 @@ namespace fs
constexpr auto lock = +open_mode::lock; // Prevent opening the file more than once 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 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 // File seek mode
enum class seek_mode : u32 enum class seek_mode : u32