diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-19 08:41:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-19 08:41:42 -0700 |
| commit | 1bf7ae79c8451d00897037a67438da265654caf3 (patch) | |
| tree | 80dd3e8d6fd6636cc5b0bfc7e9d750b4b74ae513 /src/core/file_sys/content_archive.h | |
| parent | 758c357868fca86edf3642a5a7e658839d35183c (diff) | |
| parent | 4790bb907db5ff53b8bd62cc93c65fc2749b1fc4 (diff) | |
Merge pull request #701 from lioncash/moving
content_archive: Minor changes
Diffstat (limited to 'src/core/file_sys/content_archive.h')
| -rw-r--r-- | src/core/file_sys/content_archive.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h index 129a70b97..0b8b9db61 100644 --- a/src/core/file_sys/content_archive.h +++ b/src/core/file_sys/content_archive.h @@ -4,6 +4,11 @@ #pragma once +#include <array> +#include <memory> +#include <string> +#include <vector> + #include "common/common_funcs.h" #include "common/common_types.h" #include "common/swap.h" @@ -48,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; } |
