Trying to compile dsi srl extract for macOS

Discussion in 'NDS - ROM Hacking and Translations' started by Teun1, Apr 19, 2017.

  1. Teun1
    OP

    Teun1 Advanced Member

    Newcomer
    54
    12
    Jan 13, 2016
    Netherlands
    Leiden
    Hello,

    I am trying to compile this utility tool to a macOS binary, used with the gcc compiler.

    The source code I've used is https://github.com/einstein95/dsi_srl_extract.

    It compiles fine, but when I run the executable with an SD card binary as input, it shows this error:

    total_dec_bytes: 0x00000000, bytes_to_dec: 0x00000208
    error decrypting tmd: -3


    The Windows build seems to be fine tough.

    The only error that came up when compiling was that the malloc.h wasn't found, I've changed it to the macOS malloc.h header file.

    Anyone knows why it fails for me? Is it because the code is different on other OS's?

    Thanks :)