As a fun project I've written an homebrew (a simple hello world) with the intent to inject it inside a XCI.
So what I did:
1) compiled my code and obtained my main.nso
2) using hactool I've extracted one of my XCI
3) still using hactool I've extracted the exefs/romfs from the corresponding NCA
4) I've deleted the original main (nso) and I've put my main (nso)
5) I've rebuilt the NCA using hacpack
6) I've rebuild the XCI using hacbuild
Now, I can mount the XCI without any problem, but when I start it I get a generic error. I've the suspect that I've to path the main.npdm file inside the exeFS, but there might be more to patch elsewhere. Or maybe I've to generate some meta for the new NCA?
Any informations to share? thanks
So what I did:
1) compiled my code and obtained my main.nso
2) using hactool I've extracted one of my XCI
3) still using hactool I've extracted the exefs/romfs from the corresponding NCA
4) I've deleted the original main (nso) and I've put my main (nso)
5) I've rebuilt the NCA using hacpack
6) I've rebuild the XCI using hacbuild
Now, I can mount the XCI without any problem, but when I start it I get a generic error. I've the suspect that I've to path the main.npdm file inside the exeFS, but there might be more to patch elsewhere. Or maybe I've to generate some meta for the new NCA?
Any informations to share? thanks
Last edited by SwitchMods,