SciresM / hactool

hactool is a tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives.
ISC License
982 stars 151 forks source link

Games with compressed romfs now published #109

Closed SciresM closed 2 years ago

SciresM commented 2 years ago

I'm usually not really updating hactool any more but this one I will do. This issue is for my implementing that, likely after this weekend.

SciresM commented 2 years ago

I tried to do this today and I don't remember how hactool's code works well enough to make it work. Use hactoolnet, I suppose >.>

DarkMatterCore commented 2 years ago

@SciresM If you point me in the right direction, I'm willing to implement compressed RomFS support myself. Even rewrite part of the NCA parsing code, if needed/allowed.

Support for sparse NCA sections is something that needs to be taken care of as well.

This should be enough for me to get familiar with these new NCA features and eventually implement them into nxdumptool-rewrite as well.

SciresM commented 2 years ago

Hactool's code is garbage and pretty fundamentally unmaintainable at present.

not sure what you mean by "point you in the right direction".

DarkMatterCore commented 2 years ago

Hactool's code is garbage and pretty fundamentally unmaintainable at present.

Not a problem. I'm pretty familiar with the codebase, even in its current state. Which is why I'm also willing to rewrite NCA handling if it's needed.

not sure what you mean by "point you in the right direction".

Surely Atmosphère already supports both sparse and compressed RomFS sections.

SciresM commented 2 years ago

Surely Atmosphère already supports both sparse and compressed RomFS sections.

I don't actually think it does -- atmosphere does not really need to load NCAs, so why would it? FS reimpl is still in very early/planning stages.