diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/common_types.h | 1 | ||||
| -rw-r--r-- | src/common/fs/file.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h index 0fc225aff..ae04c4d60 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h | |||
| @@ -45,6 +45,7 @@ using f32 = float; ///< 32-bit floating point | |||
| 45 | using f64 = double; ///< 64-bit floating point | 45 | using f64 = double; ///< 64-bit floating point |
| 46 | 46 | ||
| 47 | using VAddr = u64; ///< Represents a pointer in the userspace virtual address space. | 47 | using VAddr = u64; ///< Represents a pointer in the userspace virtual address space. |
| 48 | using DAddr = u64; ///< Represents a pointer in the device specific virtual address space. | ||
| 48 | using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space. | 49 | using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space. |
| 49 | using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space. | 50 | using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space. |
| 50 | 51 | ||
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 167c4d826..2e2396075 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h | |||
| @@ -37,7 +37,7 @@ void OpenFileStream(FileStream& file_stream, const std::filesystem::path& path, | |||
| 37 | template <typename FileStream, typename Path> | 37 | template <typename FileStream, typename Path> |
| 38 | void OpenFileStream(FileStream& file_stream, const Path& path, std::ios_base::openmode open_mode) { | 38 | void OpenFileStream(FileStream& file_stream, const Path& path, std::ios_base::openmode open_mode) { |
| 39 | if constexpr (IsChar<typename Path::value_type>) { | 39 | if constexpr (IsChar<typename Path::value_type>) { |
| 40 | file_stream.open(ToU8String(path), open_mode); | 40 | file_stream.open(std::filesystem::path{ToU8String(path)}, open_mode); |
| 41 | } else { | 41 | } else { |
| 42 | file_stream.open(std::filesystem::path{path}, open_mode); | 42 | file_stream.open(std::filesystem::path{path}, open_mode); |
| 43 | } | 43 | } |