summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2023-01-01 19:52:02 +0100
committerMerry <git@mary.rs>2023-01-01 19:52:02 +0100
commitbee395d2f057f2c51e06ce6c15b81454c77f2360 (patch)
tree7ba37c3b1cfcf603e98ffc005e114f182a351b20 /src
parentMerge pull request #9533 from merryhime/overcommit (diff)
downloadyuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.gz
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.bz2
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.lz
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.xz
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.tar.zst
yuzu-bee395d2f057f2c51e06ce6c15b81454c77f2360.zip
Diffstat (limited to 'src')
-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 {