summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-01-01 21:00:46 +0100
committerGitHub <noreply@github.com>2023-01-01 21:00:46 +0100
commita12a4f2a1322414a91b63ea43420ee37f5864111 (patch)
tree7ba37c3b1cfcf603e98ffc005e114f182a351b20 /src/core/file_sys
parentMerge pull request #9533 from merryhime/overcommit (diff)
parentvfs: Replace cstr concat with char concat (diff)
downloadyuzu-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.cpp6
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 {