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

Generate the forwarder NCAs entirely in JavaScript #9

Open
TooTallNate opened this issue Dec 19, 2024 · 1 comment
Open

Generate the forwarder NCAs entirely in JavaScript #9

TooTallNate opened this issue Dec 19, 2024 · 1 comment

Comments

@TooTallNate
Copy link
Owner

TooTallNate commented Dec 19, 2024

It should be relatively straightforward to bypass hacbrewpack and implement the NCA generation logic in JavaScript. This would be a lot faster and make nsp-forwarder.nro smaller, since it would not need to go through the emscripten-compiled WASM binary execution.

@ITotalJustice's implementation is the most noteworthy: https://github.com/ITotalJustice/sphaira/blob/0370e47f7fac0e426675624f363fe50f3b442048/sphaira/source/owo.cpp

@ITotalJustice
Copy link

It doesn't generate a nsp fwiw. A nsp is just a packed file with subfiles inside, exactly like a zip files with no compression.

Sphaira generates ncas and installs them directly. Nsps are only needed for title installers.

@TooTallNate TooTallNate changed the title Generate the forwarder NSP entirely in JavaScript Generate the forwarder NCAs entirely in JavaScript Dec 19, 2024
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