Tutorial  Updated

Decrypt XCI to RomFS and ExeFS for Atmosphere/FSRedirect/Backup Loading/Ryujinx/Yuzu in 1 click


IMPORTANT:
  • THIS TUTORIAL ASSUMES YOU HAVE THE DECRYPTION KEYS!
  • THIS TUTORIAL WILL NEVER PROVIDE KEYS
  • YOU ARE NOT ALLOWED TO POST ANY KEYS HERE!


Get Switch Keys (NEEDED):
My tutorial is here


Tutorial — RISEofProBB

Step 1 - PreparationStep 2 - DecryptionStep 3 - FinalizingExtras


    1. Download hactool: https://github.com/SciresM/hactool/releases/
    2. Extract the following next to hactool.exe: https://gbatemp.net/attachments/decrypt-xci-v2-1-zip.131659
    3. Make sure your keys are in keys.ini filename and format and is next to hactool.exe aswell

    1. Put the .XCI you want to decrypt next to hactool.exe (Important)
    2. Drag the .XCI onto the Decrypt-XCI.bat
    3. Let it do its thing, it could take a while
    4. Once you see "DONE!" your done!

  1. The new folder xciDecrypted next to hactool.exe is now the romfs and exefs of the xci decrypted.
    romfs in xciDecrypted/romfs.bin and exefs in xciDecrypted/exefs
    The structure is 100% ready to copy and paste into sd:/atmosphere/titles/{titleid}/ for Backup Loading/LayeredFS Mods.
    (but you still need to rename the folder to the titleid and edit the main.npdm)
    To use this with Ryujinx, drag the xciDecrypted/exefs folder onto Ryujinx.exe (No idea about Yuzu).

    • If you want the Batch file to close once its done, remove the last line (pause >nul) and save.


Thanks to gdkchan for the original script, since the original script, I have HEAVILY modified it.
 

Attachments

  • Decrypt-XCI-v2.1.zip
    772 bytes · Views: 11,375
Last edited by PRAGMA,

Mrdx

Well-Known Member
Member
Joined
Dec 12, 2013
Messages
107
Trophies
0
XP
1,077
Country
Antigua and Barbuda
Can this tool be used with this method:

So, about backup loading.
(Don't take anything I say as facts, I'm not involved in any technical stuff due to lack of time and skill)

Hekate (which conseguently uses a stripped down version of Atmosphére) supports exeFS redirection (which is used to load hbmenu) in a quite simple manner:
you just create on your SD a folder called atmosphere/titles/TITLEID/exefs and put your 'main' and 'main.npdm' inside.

(Here's a list of titleIDs http://switchbrew.org/index.php?title=Title_list/Games)
You can do this with any title (including game cartridge).

Out of curiosity I attempted to load Zelda:BotW exeFS with this method and it did indeed load (or I think it did) just to crash soon after saying that "The software has been closed".
What of course we are missing (or I think we are) is romFS redirection (which was implemented in one of the latest Atmosphére commits).

If anyone wants to play with this, be my guest.

(Once again, I feel to need to reiterate that I could be, and probably am, wrong.)

In order to launch XCIs content on Atmosphere?? :O
 
Last edited by Mrdx,

CuriousTommy

Well-Known Member
Member
Joined
Jul 22, 2014
Messages
524
Trophies
0
Age
27
XP
647
Country
United States
I am having trouble trying to convert this command to the Linux equivalent:
Code:
hactool.exe -k keys.ini --exefsdir="xciDecrypted" --romfs="xciDecrypted\romfs.romfs" "xciDecrypted\%nca_file%"

I tried to convert the command to the following, but the program rejects the arguments (prints out a help screen)
Code:
./hactool -k keys.txt --exefsdir="xciDecrypted" --romfs="xciDecrypted\romfs.romfs" xciDecrypted/*.nca
Does anyone know what I am doing wrong here...
 

Zumoly

GBATemp Analyst
Member
Joined
Apr 27, 2018
Messages
1,820
Trophies
0
Location
Yorosso
XP
3,141
Country
Mali
Hi
Tried to decrypt an xci file by dragging & dropping onto the decr.bat file
But I'm getting specified file not found in windows and also:
key <xxxxxxxxxxx> must be 32 hex!
What am I doing wrong?
 

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
I've followed the other tutorial about getting the keys.ini file and all is well with that. But when I try this I get an error message about invalid NCA header and could not find .tik/.cert files

Also some .nca files briefly appear in the xciDecrypted folder but vanish
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,041
Country
Ireland
I heavilly updated this thread. Instead of ONLY getting romfs, it now gets romfs AND exefs and structures it 100% ready for Atmospheres LayeredFS redirect/Backup Loading!

--------------------- MERGED ---------------------------

Later versions of atmoshpére expect atmosphere/titles/TITLEID/romfs.bin (https://github.com/Atmosphere-NX/At...tratosphere/fs_mitm/source/fsmitm_service.cpp)
Updated for this.

--------------------- MERGED ---------------------------

So basically what we need is a newer build of atmosphere + this tool and we’re set for loading backups ?
We can now do it!

--------------------- MERGED ---------------------------

Do we have a list of what games load?
Yes I made yet another list thread: https://gbatemp.net/threads/how-to-...redirection-list-of-working-redirects.507510/

--------------------- MERGED ---------------------------

pretty dope. any way we can easily just extract the contents of the .romfs file? :3c
You can now! :O

--------------------- MERGED ---------------------------

I am having trouble trying to convert this command to the Linux equivalent:
Code:
hactool.exe -k keys.ini --exefsdir="xciDecrypted" --romfs="xciDecrypted\romfs.romfs" "xciDecrypted\%nca_file%"

I tried to convert the command to the following, but the program rejects the arguments (prints out a help screen)
Code:
./hactool -k keys.txt --exefsdir="xciDecrypted" --romfs="xciDecrypted\romfs.romfs" xciDecrypted/*.nca
Does anyone know what I am doing wrong here...
the *.nca isnt what we are doing here. the nca bit at the end is the full path to the BIGGEST .nca file. Hope you get it going. Recommend looking at my updated version though

--------------------- MERGED ---------------------------

Hi
Tried to decrypt an xci file by dragging & dropping onto the decr.bat file
But I'm getting specified file not found in windows and also:
key <xxxxxxxxxxx> must be 32 hex!
What am I doing wrong?
.xci must be right next to the hactool.exe and .bat file.
And you must get your keys. Read very top of thread.

--------------------- MERGED ---------------------------

I've followed the other tutorial about getting the keys.ini file and all is well with that. But when I try this I get an error message about invalid NCA header and could not find .tik/.cert files

Also some .nca files briefly appear in the xciDecrypted folder but vanish
Can you try new version I updated?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I was gonna say people are not that dumb, but yea you right, some are.
    +1
  • K3Nv2 @ K3Nv2:
    People have put 50mg salt nic in straight subohm coils which is like more powerful hits
    +1
  • BigOnYa @ BigOnYa:
    Hey psi, do they have dress codes down there in FLa, here there are signs on stores that say "No shirt, no service" but curious bout down yonder
  • BigOnYa @ BigOnYa:
    Yea I tried the salts and too strong for me, I prefer the norm juice
  • K3Nv2 @ K3Nv2:
    In Florida they don't serve you if you have clothes on
    +1
  • K3Nv2 @ K3Nv2:
    Fucking raining again
  • BigOnYa @ BigOnYa:
    How can you tell, do you see rain drops on top of other rain drops?
    +1
  • K3Nv2 @ K3Nv2:
    I can tell by whenever your wife done letting out loud ass moans then I get her a ticket back home
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah most places demand clothes and shoes, unless it's some really back water place that I am unaware of lol
    +1
  • BigOnYa @ BigOnYa:
    Cool, I got lunch money for tomorrow then.
  • BakerMan @ BakerMan:
    @K3Nv2 call uremum Sloppenheimer the way she givin me this bomb head
    +1
  • K3Nv2 @ K3Nv2:
    I call uremum alzheimer she forgets to leave
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Time to start a vape straight nicotine challenge, Darwin be praised!
    +1
  • K3Nv2 @ K3Nv2:
    Imagine if Hitler had vapes, we promise it's not cyanide it'll help you quit nicotine
    +1
  • BigOnYa @ BigOnYa:
    Please, walk into my patented vape chamber, aka the non smoking area
  • K3Nv2 @ K3Nv2:
    I do wonder how dominate Germany would've been if they just enlisted Jewish people
  • BigOnYa @ BigOnYa:
    They actually enlisted Muslims, seriously, because the Muslims hates Jews, even tho it was not the supreme race. He claimed common hate, is friendship.
  • K3Nv2 @ K3Nv2:
    He could've just made them walking shields kind of a dumb ass move
  • K3Nv2 @ K3Nv2:
    https://a.co/d/3km8bqC lol cd level quality I fucking hope so
  • BigOnYa @ BigOnYa:
    So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says "Not tonight, I have a gyno apt in the morning." So man rolls over, but after few minutes starts rubbing her again. She says didn't you here me, no messing around, I have a gyno apt tomorrow. " Man says, "Well you don't have a dentist apt tomorrow also do you?"
  • BigOnYa @ BigOnYa:
    Damn I have 8 modded rgh3 x360 slims I've done, I need to get rid of, I figured my family members or friends would want but times have changed. Think I'm gonna stop buying them and modding. Time to Switch it up (pun intended)
  • K3Nv2 @ K3Nv2:
    Yay power outages
  • K3Nv2 @ K3Nv2:
    @BigOnYa, I'm your friend
    +1
  • BigOnYa @ BigOnYa:
    There literally no storms in your area, does it go out alot? You need to just send me your slim n ill rgh3 it free.
    BigOnYa @ BigOnYa: There literally no storms in your area, does it go out alot? You need to just send me your slim...