ROM Hack [Release] ExInjector - Inject original exheaders into repacked roms

piratesephiroth

I wish I could read
OP
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
This solves about 90% of all compatibility problems with repacked roms, since issues usally come from exheader settings.
You don't need to waste time tweaking RSF files anymore. Get any good RSF file and you just have to set the obvious settings, like BasicInfo, CardInfo and Options. Leave the rest as is and build with any -desc template.
Inject the original exheader and you always get a flawlessly repacked rom.

It can also make any rom work from the SD and spoof firmware requirements as if the game was made for v4.0 (won't make the most recent games work though).

It's a command line tool but double clicking the exe will also work.

This method was originally discovered by ground, but it takes a bit of work to be done manually, so I made this crappy thing.
I also added a new feature: it can make any game work from the SD card, but only if your rom isn't encrypted.

It works via command line, so you can include it into your batch scripts but you can also double click the exe and it will ask you for the files.

(Remember you need to extract the exheader with ctrtool. If you dump it with 3DSExplorer it won't work)

Update 1:
Now it checks if it's a retail rom;
Doesn't use msg.exe anymore;

Update 2:
Supports NCCH files.
Changed bat example because -ccitocia option is buggy (thanks VerseHell)

Update 4:
Supports firmware spoofing, so more games can run on the CFW's 4.X NAND.
Any game that works with Gateway's firmware spoofing should work in the CFW as well.
Thanks, Riku, for the idea.

Update 5:
Only offfer fw spoofing if the selected rom requires it.

Update 6:
Fixed some little stuff and disable exheader's "SD App" flag if the "-sd" switch isn't used

Example:
here's what I used to repack Animal Crossing into a functional CIA file:
Code:
..\makerom -f ncch -target t -desc ecapp:3 -rsf gw.rsf -exefslogo -romfs extracted\xored_romfs.bin -exheader extracted\xored_exheader.bin -code extracted\exefs\code.bin -icon extracted\exefs\icon.bin -banner extracted\exefs\banner.bin -alignwr -o ANIMALTEST.CXI
..\exinjector -rom ANIMALTEST.cxi -exheader extracted\xored_exheader.bin -sd -fwspoof
..\makerom -f cia -target t -content ANIMALTEST.cxi:0:0 -o ANIMALTEST.cia
 

Attachments

  • rsfgen.py.zip
    2.7 KB · Views: 1,519
  • ExInjector.zip
    428.5 KB · Views: 3,061
Last edited by piratesephiroth,

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
Can this be used also when the rom is encrypted and the .cia is rebuilt from the extracted binaries?
 

piratesephiroth

I wish I could read
OP
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
Can this be used also when the rom is encrypted and the .cia is rebuilt from the extracted binaries?

If the rom is encrypted we can't edit the exheader directly without resigning it. So it will only work as a CIA if the encrypted rom can already run from the SD.
 

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
If the rom is encrypted we can't edit the exheader directly without resigning it. So it will only work as a CIA if the encrypted rom can already run from the SD.

Oh I see what your saying. I didn't read the first command all the way. So it builds the .3ds with the template exheader from makerom, then injects the actual exheader, then does -ccitocia.

Edit: I don't have my 3ds on me at the moment, will try when I get home. :)
 

Riku

Well-Known Member
Member
Joined
May 3, 2009
Messages
288
Trophies
0
XP
1,491
Country
United States
When using command
Code:
exinjector -rom MARIOTEST.3DS -exheader xored_exh.bin -sd
It throws this:

swOtcxW.png
 

Riku

Well-Known Member
Member
Joined
May 3, 2009
Messages
288
Trophies
0
XP
1,491
Country
United States
lol is your windows broken or what.
where's your msg.exe?

I'll edit it to handle that exception.
Also, is it possible to change kernel version without touching signature? It would be nice having ability to change kernel version so SDK5 games could work on 4.5 fw.
 

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
Ok, when running it just says "ERROR Could not read exheader file!" I am 99.9% certain that the file name is correct and that the exheader is valid
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, i have a physical copy of mgs4
  • Xdqwerty @ Xdqwerty:
    ok I tried it and 1) it doesnt boot wood menu automatically and 2) when trying to load a game through wood theres just a loading screen
  • K3Nv2 @ K3Nv2:
    It's low on wood
    +1
  • Xdqwerty @ Xdqwerty:
    lemme ask in forums
  • Xdqwerty @ Xdqwerty:
    yawn
  • BigOnYa @ BigOnYa:
    @Xdqwerty No you heard wrong, and don't believe till you experience yourself. Fallout 4 is one of my favorite games of all time. Yes it had issues early on, esp with older hardware like the xbox1, but it is awesome, esp now being 4k on Series S/X or PS5
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, Then i think people were talking about fallout 76
  • Xdqwerty @ Xdqwerty:
    that one was buggy too
  • BigOnYa @ BigOnYa:
    Yea you right there, fallout 76 was a letdown, but it not that bad now, they have fixed slot of issues they had at launch. Biggest issue with Fallout 76 is its a pay to advance further type of game, which sucks
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, I may probably download fallout 3 or new vegas on my ps3
  • Xdqwerty @ Xdqwerty:
    cuz I didnt like fallout 1 that much
  • BigOnYa @ BigOnYa:
    New Vegas is awesome, F3 was ok too.
  • Psionic Roshambo @ Psionic Roshambo:
    I played Fallout 4 on PC, I enjoyed it honestly. Not my favorite game on earth but at the same time I didn't hate it at all lol
  • BigOnYa @ BigOnYa:
    That's cool you got a ps3... Glad to hear. Game on!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Ironic this was posted today lol
  • BigOnYa @ BigOnYa:
    I think the tv series has boasted play of, I did see they said playing of it Is up, way more than norm
    +1
  • BigOnYa @ BigOnYa:
    I've been playing the next gen version on Series X all day, I love it. :wub:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Downloading some random stuff, damn almost 400GBs in like 4 hours lol
  • Psionic Roshambo @ Psionic Roshambo:
    Gonna be over 1TB this month.... damn lol
  • Xdqwerty @ Xdqwerty:
    good night
    +1
  • BigOnYa @ BigOnYa:
    At least you have some fast speeds. What a drag that used to be, I remb downloading 1 pic back in the day, and seeing line by line show
    +1
  • BigOnYa @ BigOnYa:
    Nighty night.
  • BigOnYa @ BigOnYa:
    Or worse, you downloading something, and someone calls your phone and interupts the download, good ole AOL. Of course that's before most you guys even were born yet.
    BigOnYa @ BigOnYa: Or worse, you downloading something, and someone calls your phone and interupts the download...