Question How do I extract RomFS from an nsp?

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by Nerdtendo, Sep 21, 2018.

  1. Nerdtendo
    OP

    Nerdtendo Your friendly neighborhood idiot

    Member
    7
    Sep 29, 2016
    United States
  2. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    United States
    Code:
    hactool -t pfs0 --pfs0dir=0100d870045b6000 filename.nsp
    
    hactool -k keys.dat --titlekey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --romfsdir=romfs 0100d870045b6000/56988d68627179b0393561018d15c4be.nca
    
    That'll extract the NSP into a `0100d870045b6000` folder, then extract romFS into a folder called `romfs` (this is assuming that the NSO file is in the same directory as hactool or that hactool is in your path and can be run from anywhere)
     
    Last edited by AnalogMan, Sep 21, 2018
  3. Nerdtendo
    OP

    Nerdtendo Your friendly neighborhood idiot

    Member
    7
    Sep 29, 2016
    United States
    Where can I find titlekeys? I was getting them from Bob CDNSP but it doesn't support Python 2.7 and hactool doesn't support Python 3.6

    Truly a predicament.

    I'm pretty sure you're not allowed to specifically state where to find them but a hint in the right direction would be appreciated.
     
  4. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    United States
    Gotta quote replies man, otherwise people don't get notifications for them. If you have the NSP you can just extract it with the first command and grab the title key from the *.tik file inside. Also, hactool doesn't run on python, so what version of python you have doesn't matter.
     
Loading...