summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 08:54:07 +0200
committerLioncash <mathew1800@gmail.com>2018-07-22 09:22:28 +0200
commit0081252d317af44b3e810d7f31fdd3fb03b8e23c (patch)
tree4237df67a4938585d9485fc07551c470e8527dde /src/core/file_sys
parentfile_util, vfs: Use std::string_view where applicable (diff)
downloadyuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar.gz
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar.bz2
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar.lz
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar.xz
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.tar.zst
yuzu-0081252d317af44b3e810d7f31fdd3fb03b8e23c.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/vfs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h
index 529c6c952..4a13b8378 100644
--- a/src/core/file_sys/vfs.h
+++ b/src/core/file_sys/vfs.h
@@ -205,9 +205,12 @@ struct VfsDirectory : NonCopyable {
template <typename Directory>
bool InterpretAsDirectory(std::string_view file) {
auto file_p = GetFile(file);
- if (file_p == nullptr)
+
+ if (file_p == nullptr) {
return false;
- return ReplaceFileWithSubdirectory(file, std::make_shared<Directory>(file_p));
+ }
+
+ return ReplaceFileWithSubdirectory(file_p, std::make_shared<Directory>(file_p));
}
protected: