diff options
author | Mai <mai.iam2048@gmail.com> | 2023-01-01 21:00:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 21:00:46 +0100 |
commit | a12a4f2a1322414a91b63ea43420ee37f5864111 (patch) | |
tree | 7ba37c3b1cfcf603e98ffc005e114f182a351b20 /src/core/file_sys | |
parent | Merge pull request #9533 from merryhime/overcommit (diff) | |
parent | vfs: Replace cstr concat with char concat (diff) | |
download | yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar.gz yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar.bz2 yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar.lz yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar.xz yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.tar.zst yuzu-a12a4f2a1322414a91b63ea43420ee37f5864111.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/vfs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/vfs.cpp b/src/core/file_sys/vfs.cpp index 0f6618b31..639842401 100644 --- a/src/core/file_sys/vfs.cpp +++ b/src/core/file_sys/vfs.cpp @@ -194,9 +194,9 @@ std::size_t VfsFile::WriteBytes(const std::vector<u8>& data, std::size_t offset) std::string VfsFile::GetFullPath() const { if (GetContainingDirectory() == nullptr) - return "/" + GetName(); + return '/' + GetName(); - return GetContainingDirectory()->GetFullPath() + "/" + GetName(); + return GetContainingDirectory()->GetFullPath() + '/' + GetName(); } VirtualFile VfsDirectory::GetFileRelative(std::string_view path) const { @@ -435,7 +435,7 @@ std::string VfsDirectory::GetFullPath() const { if (IsRoot()) return GetName(); - return GetParentDirectory()->GetFullPath() + "/" + GetName(); + return GetParentDirectory()->GetFullPath() + '/' + GetName(); } bool ReadOnlyVfsDirectory::IsWritable() const { |