content_archive: Make IsValidNCA() an internally linked function
This is only ever used within the cpp file, so it can just be an internal function.
This commit is contained in:
parent
53e77ffbfe
commit
441b5b97bd
|
@ -97,7 +97,7 @@ union NCASectionHeader {
|
||||||
};
|
};
|
||||||
static_assert(sizeof(NCASectionHeader) == 0x200, "NCASectionHeader has incorrect size.");
|
static_assert(sizeof(NCASectionHeader) == 0x200, "NCASectionHeader has incorrect size.");
|
||||||
|
|
||||||
bool IsValidNCA(const NCAHeader& header) {
|
static bool IsValidNCA(const NCAHeader& header) {
|
||||||
// TODO(DarkLordZach): Add NCA2/NCA0 support.
|
// TODO(DarkLordZach): Add NCA2/NCA0 support.
|
||||||
return header.magic == Common::MakeMagic('N', 'C', 'A', '3');
|
return header.magic == Common::MakeMagic('N', 'C', 'A', '3');
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,8 +73,6 @@ inline bool IsDirectoryExeFS(const std::shared_ptr<VfsDirectory>& pfs) {
|
||||||
return pfs->GetFile("main") != nullptr && pfs->GetFile("main.npdm") != nullptr;
|
return pfs->GetFile("main") != nullptr && pfs->GetFile("main.npdm") != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsValidNCA(const NCAHeader& header);
|
|
||||||
|
|
||||||
// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner.
|
// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner.
|
||||||
// After construction, use GetStatus to determine if the file is valid and ready to be used.
|
// After construction, use GetStatus to determine if the file is valid and ready to be used.
|
||||||
class NCA : public ReadOnlyVfsDirectory {
|
class NCA : public ReadOnlyVfsDirectory {
|
||||||
|
|
Loading…
Reference in a new issue