Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCA with SparseInfo field #108

Open
proconsule opened this issue Sep 17, 2021 · 2 comments
Open

NCA with SparseInfo field #108

proconsule opened this issue Sep 17, 2021 · 2 comments

Comments

@proconsule
Copy link

proconsule commented Sep 17, 2021

Hi , i found out that some recent NCA (Base Game Program NCA) have SparseInfo field set, they failed to get parsed by hactool, giving Section read error.

Looking at that i found out that on Fs Header it gives "wrong offset" far beyond the file size (the PFS0 section) and also the roms gives wrong size on Level 5 IVFC.
I suspect that SparseInfo (that contain a BKTR magic) at offset 0x148 of fs Header for each section would inform of some math to get right offset for PFS0 and also for RomFS size.

Have you some info on this undocumented Sparse Info field?
Thanks

@R-YaTian
Copy link

SparseInfo should already documented on Atmosphere - fssystem_nca_header.hpp
And I found that Base NSP of 'last stop' don't have PFS0 section actually.

@proconsule
Copy link
Author

thanks for the info on that, i will check it

At offset 0x3D418F23 of program nca(decrypted) there is a PFS0 magic maybe isn't a real one, i'll have to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants