diff options
| author | 2021-06-01 09:22:18 -0400 | |
|---|---|---|
| committer | 2021-06-02 00:26:26 -0400 | |
| commit | dba7bcd489b9802c3d25e3e8183ef7991af301b8 (patch) | |
| tree | 24a040c1117135d965e9f17aefa37a6cdd9d3bc7 /src/common/fs/fs_util.cpp | |
| parent | common: fs: fs_util: Add more string conversion functions (diff) | |
| download | yuzu-dba7bcd489b9802c3d25e3e8183ef7991af301b8.tar.gz yuzu-dba7bcd489b9802c3d25e3e8183ef7991af301b8.tar.xz yuzu-dba7bcd489b9802c3d25e3e8183ef7991af301b8.zip | |
common: fs: fs_util: Move PathToUTF8String to fs_util
Diffstat (limited to 'src/common/fs/fs_util.cpp')
| -rw-r--r-- | src/common/fs/fs_util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/fs/fs_util.cpp b/src/common/fs/fs_util.cpp index 9db746c4b..357cf5855 100644 --- a/src/common/fs/fs_util.cpp +++ b/src/common/fs/fs_util.cpp | |||
| @@ -20,4 +20,8 @@ std::string ToUTF8String(std::u8string_view u8_string) { | |||
| 20 | return std::string{u8_string.begin(), u8_string.end()}; | 20 | return std::string{u8_string.begin(), u8_string.end()}; |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | std::string PathToUTF8String(const std::filesystem::path& path) { | ||
| 24 | return ToUTF8String(path.u8string()); | ||
| 25 | } | ||
| 26 | |||
| 23 | } // namespace Common::FS | 27 | } // namespace Common::FS |