summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Merry2023-01-01 18:52:02 +0000
committerGravatar Merry2023-01-01 18:52:02 +0000
commitbee395d2f057f2c51e06ce6c15b81454c77f2360 (patch)
tree7ba37c3b1cfcf603e98ffc005e114f182a351b20
parentMerge pull request #9533 from merryhime/overcommit (diff)
downloadyuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.gz
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.xz
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.zip
vfs: Replace cstr concat with char concat
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)
194 194
195std::string VfsFile::GetFullPath() const { 195std::string VfsFile::GetFullPath() const {
196 if (GetContainingDirectory() == nullptr) 196 if (GetContainingDirectory() == nullptr)
197 return "/" + GetName(); 197 return '/' + GetName();
198 198
199 return GetContainingDirectory()->GetFullPath() + "/" + GetName(); 199 return GetContainingDirectory()->GetFullPath() + '/' + GetName();
200} 200}
201 201
202VirtualFile VfsDirectory::GetFileRelative(std::string_view path) const { 202VirtualFile VfsDirectory::GetFileRelative(std::string_view path) const {
@@ -435,7 +435,7 @@ std::string VfsDirectory::GetFullPath() const {
435 if (IsRoot()) 435 if (IsRoot())
436 return GetName(); 436 return GetName();
437 437
438 return GetParentDirectory()->GetFullPath() + "/" + GetName(); 438 return GetParentDirectory()->GetFullPath() + '/' + GetName();
439} 439}
440 440
441bool ReadOnlyVfsDirectory::IsWritable() const { 441bool ReadOnlyVfsDirectory::IsWritable() const {