summaryrefslogtreecommitdiffstats
path: root/src/common/fs
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2024-01-20 18:46:30 +0100
committerMerry <git@mary.rs>2024-01-20 18:46:30 +0100
commit5c398ede6f2ac85655d0035a06b12a71b431bd3a (patch)
tree8059a55b49896edc1ded7b9ad5cc5c1c95433dc7 /src/common/fs
parentMerge pull request #12713 from shinra-electric/mvk-127 (diff)
downloadyuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar.gz
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar.bz2
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar.lz
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar.xz
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.tar.zst
yuzu-5c398ede6f2ac85655d0035a06b12a71b431bd3a.zip
Diffstat (limited to 'src/common/fs')
-rw-r--r--src/common/fs/file.h2
1 files changed, 1 insertions, 1 deletions
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,
template <typename FileStream, typename Path>
void OpenFileStream(FileStream& file_stream, const Path& path, std::ios_base::openmode open_mode) {
if constexpr (IsChar<typename Path::value_type>) {
- file_stream.open(ToU8String(path), open_mode);
+ file_stream.open(std::filesystem::path{ToU8String(path)}, open_mode);
} else {
file_stream.open(std::filesystem::path{path}, open_mode);
}