VERY experimental Nintendo Switch 2 emulator
C++
content_archive: Make IsDirectoryExeFS() take a shared_ptr as a const reference
Lioncash9eb43dc910d9
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.hindex d4517d20e1..0b8b9db612 100644--- a/src/core/file_sys/content_archive.h+++ b/src/core/file_sys/content_archive.h@@ -53,7 +53,7 @@ struct NCAHeader {};static_assert(sizeof(NCAHeader) == 0x400, "NCAHeader has incorrect size.");-inline bool IsDirectoryExeFS(std::shared_ptr<FileSys::VfsDirectory> pfs) {+inline bool IsDirectoryExeFS(const std::shared_ptr<VfsDirectory>& pfs) {// According to switchbrew, an exefs must only contain these two files:return pfs->GetFile("main") != nullptr && pfs->GetFile("main.npdm") != nullptr;}