QUESTION: how to decrypt .romfs files on mac

Discussion in '3DS - Homebrew Development and Emulators' started by 101239, Oct 30, 2015.

  1. 101239
    OP

    101239 GBATemp Irregular

    Banned
    312
    158
    Oct 25, 2015
    United States
    Maybe Somewhere near you? ( ͡° ͜ʖ ͡°)
    le title. :hateit:
     
  2. Favna

    Favna #PCMasterRace

    Member
    798
    374
    Sep 12, 2009
    Netherlands
    Wine is your quick answer: http://winebottler.kronenberg.org/

    But honestly man.. A Mac without a Windows virtual machine (be that through Parallels or through VMWare / Virtual Box) is a waste of time, life and money.
     
  3. 101239
    OP

    101239 GBATemp Irregular

    Banned
    312
    158
    Oct 25, 2015
    United States
    Maybe Somewhere near you? ( ͡° ͜ʖ ͡°)
    Oh OK thanks
     
  4. mvit

    mvit Member

    Newcomer
    10
    11
    Sep 19, 2010
    United States
    Downloading Project_CTR's repo and compiling doesn't work?
    Edit: here's my compiled ctrtool, used OSX 10.11 to compile. Working on Makerom now, I'm getting some pointer errors from the repo's download.
     
    Last edited by mvit, Oct 31, 2015
  5. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,945
    5,728
    Jan 27, 2015
    United States
    Behind a screen reading news
    Can't wait for Makerom to be done!

    — Posts automatically merged - Please don't double post! —

    @mvit when terminal loads it spits out a bunch a text. Doesn't look like i can use it...
     
  6. mvit

    mvit Member

    Newcomer
    10
    11
    Sep 19, 2010
    United States
    Can you run the following: ctrtool > log.txt and paste log.txt?
     
  7. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,945
    5,728
    Jan 27, 2015
    United States
    Behind a screen reading news
    Last login: Sat Oct 31 10:26:37 on ttys000

    -bash: !/bin/sh: No such file or directory

    Timothys-Mac-mini:~ Timothy$ /Users/Timothy/Desktop/ctrtool > log.txt

    Usage: /Users/Timothy/Desktop/ctrtool [options...] <file>

    CTRTOOL (c) neimod, 3DSGuy.



    Options:

    -i, --info Show file info.

    This is the default action.

    -x, --extract Extract data from file.

    This is also the default action.

    -p, --plain Extract data without decrypting.

    -r, --raw Keep raw data, don't unpack.

    -k, --keyset=file Specify keyset file.

    -v, --verbose Give verbose output.

    -y, --verify Verify hashes and signatures.

    --unitsize=size Set media unit size (default 0x200).

    --commonkey=key Set common key.

    --titlekey=key Set tik title key.

    --ncchkey=key Set ncch key.

    --ncchsyskey=key Set ncch fixed system key.

    --showkeys Show the keys being used.

    -t, --intype=type Specify input file type [ncsd, ncch, exheader, cia, tmd, lzss,

    firm, cwav, exefs, romfs]

    LZSS options:

    --lzssout=file Specify lzss output file

    CXI/CCI options:

    -n, --ncch=index Specify NCCH partition index.

    --exefs=file Specify ExeFS file path.

    --exefsdir=dir Specify ExeFS directory path.

    --romfs=file Specify RomFS file path.

    --exheader=file Specify Extended Header file path.

    --logo=file Specify Logo file path.

    CIA options:

    --certs=file Specify Certificate chain file path.

    --tik=file Specify Ticket file path.

    --tmd=file Specify TMD file path.

    --contents=file Specify Contents file path.

    --meta=file Specify Meta file path.

    FIRM options:

    --firmdir=dir Specify Firm directory path.

    CWAV options:

    --wav=file Specify wav output file.

    --wavloops=count Specify wav loop count, default 0.

    EXEFS options:

    --decompresscode Decompress .code section

    (only needed when using raw EXEFS file)

    ROMFS options:

    --romfsdir=dir Specify RomFS directory path.

    --listromfs List files in RomFS.



    Timothys-Mac-mini:~ Timothy$
     
  8. mvit

    mvit Member

    Newcomer
    10
    11
    Sep 19, 2010
    United States
    Ok, so you're not inputting any commands and you're getting the usage menu, it's not a bug.
    If you don't care about learning how the tool works and just want to unpack the romfs.bin, use this command "./ctrtool --intype=romfs --romfsdir=romfsdir romfs.bin"
     
  9. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,945
    5,728
    Jan 27, 2015
    United States
    Behind a screen reading news
    lol. okay thanks for cutting to the chase :) How hard would it be for one to make this a gui. Is C even portable to objective c
     
  10. mvit

    mvit Member

    Newcomer
    10
    11
    Sep 19, 2010
    United States
    Objective C builds on top of C, but honestly a GUI isn't worth it for this, just read the usage menu and learn how to use the terminal for now.
     
  11. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,945
    5,728
    Jan 27, 2015
    United States
    Behind a screen reading news
    okay i see. I will try to make a gui today though. Ive been using Xcode only for iOS but now i have a reason to do it for mac. ( i originally used the mac part just to fuck around)