VERY experimental Nintendo Switch 2 emulator
C++
vfs: Correct file_p variable usage within InterpretAsDirectory()
Lioncash2cbc2717e4cf
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.hindex 529c6c952d..4a13b8378e 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: