ROM Hack Question Is there any exec() function in libnx/others SDK?

  • Thread starter Thread starter SwitchMods
  • Start date Start date
  • Views Views 1,319
  • Replies Replies 6

SwitchMods

Active Member
Newcomer
Joined
Aug 27, 2018
Messages
35
Reaction score
6
Trophies
0
XP
154
Country
Netherlands
Okay so let's assume that we have 3 executable files (NSO) in the exeFS called: main.nso, main2.nso and main3.nso
Is there any sdk exec function that I can call fom main.nso to boot (on the fly) main2.nso or main3.nso?

This is not a difficult function to implement, but require a lot of knowlege of Horizon and its executable loader. Basically it should load the executable, find its OEP and then call it (but idk if there are any software dependances that need to be loaded too)...

am I the first one trying to achieve this?
 
Thank you both (@hippy dave and @m4xw ) for your anwers, I'll give it a look.

I think that technically should be possible to edit envSetNextLoad to support NSO, by adding a parser of this executable format (atm I don't have this knownledge, but this is a documented format so it shouldn't be a problem).

We will see... any addition to this topic is welcome ;)
 

Site & Scene News

Popular threads in this forum