diff options
Diffstat (limited to 'src/common/fs/file.h')
| -rw-r--r-- | src/common/fs/file.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 2c4ab4332..a4f7944cd 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h | |||
| @@ -188,9 +188,8 @@ public: | |||
| 188 | 188 | ||
| 189 | #ifdef _WIN32 | 189 | #ifdef _WIN32 |
| 190 | template <typename Path> | 190 | template <typename Path> |
| 191 | [[nodiscard]] void Open(const Path& path, FileAccessMode mode, | 191 | void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile, |
| 192 | FileType type = FileType::BinaryFile, | 192 | FileShareFlag flag = FileShareFlag::ShareReadOnly) { |
| 193 | FileShareFlag flag = FileShareFlag::ShareReadOnly) { | ||
| 194 | using ValueType = typename Path::value_type; | 193 | using ValueType = typename Path::value_type; |
| 195 | if constexpr (IsChar<ValueType>) { | 194 | if constexpr (IsChar<ValueType>) { |
| 196 | Open(ToU8String(path), mode, type, flag); | 195 | Open(ToU8String(path), mode, type, flag); |