mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Match FS behavior when checking if an NCA section exists
This commit is contained in:
parent
3888a03a92
commit
6aa15c0691
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ namespace LibHac.IO.NcaUtils
|
|||
|
||||
public bool IsSectionEnabled(int index)
|
||||
{
|
||||
return GetSectionEntry(index).IsEnabled;
|
||||
ref NcaSectionEntryStruct info = ref GetSectionEntry(index);
|
||||
|
||||
int sectStart = info.StartBlock;
|
||||
int sectSize = info.EndBlock - sectStart;
|
||||
return sectStart != 0 || sectSize != 0;
|
||||
}
|
||||
|
||||
public Span<byte> GetFsHeaderHash(int index)
|
||||
|
|
Loading…
Reference in a new issue