Compiling menuhax_manager

Discussion in '3DS - Homebrew Development and Emulators' started by 3xkrazy, Jan 27, 2016.

  1. 3xkrazy
    OP

    3xkrazy GBAtemp Regular

    Member
    290
    58
    Jun 2, 2013
    United States
    I got tired of having the root of my SD cluttered with dumps, .bins, files, etc. so I decided to modify the source of yellow8's menuhax to load/read the ropbinpayload_XXX.bin and menuhax_padcfg.bin at a different file path (sd:/3ds/menuhax_manager/).

    Success, it worked, but every now and then screenshots_raw.bin dumps onto the root of my card. Does anyone know how to disable it or make menuhax dump it at a different file path? I did a string search for "screenshots" on the repo but came up with nothing.
     
  2. Damian666

    Damian666 Coder from Hell

    Member
    638
    136
    Mar 24, 2010
    Netherlands
    In your code...
    no idea, but I would love that edit mate, I am also very OCD about that >.<

    god I hate it when they dump shit there, its so...UGH!
     
    Fr0zenIce likes this.
  3. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,482
    1,513
    May 9, 2014
    Hervey Bay, Queensland
    pretty sure the screenshots_raw.bin is part of *hax 2.5 not menuhax. which is created when you press HOME when *hax is running.
     
  4. Mrrraou

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    It's part of *hax2.5. menu_payload/menu_ropbin.s, line 581.
     
  5. 3xkrazy
    OP

    3xkrazy GBAtemp Regular

    Member
    290
    58
    Jun 2, 2013
    United States
    Sure. Just replace the original string with these:

    3ds_homemenuhax/Makefile
    Code:
    DEFINES    :=    $(DEFINES) -DROPBINPAYLOAD_PATH=\"sd:/3ds/menuhax_manager/ropbinpayload_$(BUILDPREFIX).bin\"
    3ds_homemenuhax/menuhax_payload.s
    Code:
    .string16 "sd:/3ds/menuhax_manager/menuhax_payload.bin"
    
    .string16 "sd:/3ds/menuhax_manager/menuhax_padcfg.bin"
    
    .string16 "sd:/3ds/menuhax_manager/menuhax_imagedisplay.bin"
    
    3ds_homemenuhax/menuhax_manager/source/menuhax_manager.c
    Code:
    ret = archive_readfile(SDArchive, "sdmc:/3ds/menuhax_manager/menuhax_padcfg.bin", (u8*)sdcfg, sizeof(sdcfg));
    
    unlink("sdmc:/3ds/menuhax_manager/menuhax_padcfg.bin");
    
    ret = archive_writefile(SDArchive, "sdmc:/3ds/menuhax_manager/menuhax_padcfg.bin", (u8*)sdcfg, sizeof(sdcfg), 0);
    
    ret = archive_getfilesize(SDArchive, "sdmc:/3ds/menuhax_manager/menuhaxmanager_input_payload.bin", &payloadsize);
    
    if(ret==0)ret = archive_readfile(SDArchive, "sdmc:/3ds/menuhax_manager/menuhaxmanager_input_payload.bin", filebuffer, payloadsize);
    
    unlink("sdmc:/3ds/menuhax_manager/menuhax_ropbinpayload.bin");
    
    snprintf(ropbin_filepath, 255, "sdmc:/3ds/menuhax_manager/ropbinpayload_%s.bin", menuhax_basefn);
    
    ret = stat("sdmc:/3ds/menuhax_manager/menuhax_imagedisplay.bin", &filestats);
    
    unlink("sdmc:/3ds/menuhax_manager/menuhax_imagedisplay.bin");
    

    If you're interested in doing the same with CakesFW, do the same with the code below. Drop slot0x25keyX.bin, slot0x11key96.bin, firmware.bin, and cetk files into SD:/3ds/Cakes/cfw/cakes/ after you build it.

    CakesForeveryWan/Makefile
    Code:
    .PHONY: all
    all: launcher patches ninjhax
        @mkdir -vp $(dir_out)/3ds/Cakes/cfw
        @mv -v $(dir_out)/cakes $(dir_out)/3ds/Cakes/cfw/
        @mv -v $(dir_out)/Cakes.dat $(dir_out)/3ds/Cakes/cfw/
    CakesForeveryWan/source/paths.h
    Code:
    #define PATH_CAKES "/3ds/Cakes/cfw/cakes"
    
    #define PATH_SLOT0X25KEYX PATH_CAKES "/slot0x25keyX.bin"
    
    #define PATH_SLOT0X11KEY96 PATH_CAKES "/slot0x11key96.bin"
    CakesForeveryWan/CakeBrah/Makefile
    Code:
    filepath ?= 3ds/Cakes/cfw/
    CakesForeveryWan/CakeHax/Makefile
    Code:
    filepath ?= 3ds/Cakes/cfw/
     
    Last edited by 3xkrazy, Jan 31, 2016
  6. Damian666

    Damian666 Coder from Hell

    Member
    638
    136
    Mar 24, 2010
    Netherlands
    In your code...
    yeah I wish, I cant get anything done with devkit I'm afraid :(
     
  7. 3xkrazy
    OP

    3xkrazy GBAtemp Regular

    Member
    290
    58
    Jun 2, 2013
    United States
    Want me to upload a build for you? What's your 3ds type? Old/New, USA/JPN/EU?
     
  8. Damian666

    Damian666 Coder from Hell

    Member
    638
    136
    Mar 24, 2010
    Netherlands
    In your code...
    oh please do, new 3ds, eu :)
     
  9. 3xkrazy
    OP

    3xkrazy GBAtemp Regular

    Member
    290
    58
    Jun 2, 2013
    United States
    It's going to take a while, since i'm compiling on my 10 year old laptop. I'm going to compile for all types and region. I'll post it here later tonight after my friends leave.
     
  10. Damian666

    Damian666 Coder from Hell

    Member
    638
    136
    Mar 24, 2010
    Netherlands
    In your code...
    thanx mate :)
     
  11. 3xkrazy
    OP

    3xkrazy GBAtemp Regular

    Member
    290
    58
    Jun 2, 2013
    United States
    As promised, here are the latest builds of menuhax, CakesFW, and ReiNand. Please back up your Sysnand's extdat and private folder before installing.

    menuhax_manager: Launch homebrew channel loader with browserhax and install. You can cut down the folder size by deleting *.lz from SD:/3ds/menuhax_manager/finaloutput/shufflepayload/ and SD:/3ds/menuhax_manager/finaloutput/themepayload/ outside of your 3DS region.

    CakesFW: Drop firmware.bin, slot0x25keyX.bin, slot0x11key96.bin, and cetk into SD:/3ds/Cakes/cfw/cakes/

    ReiNand: Drop firmware.bin into SD:/3ds/ReiNand/cfw/rei/
     

    Attached Files:

    Damian666 and Februarysn0w like this.
  12. Damian666

    Damian666 Coder from Hell

    Member
    638
    136
    Mar 24, 2010
    Netherlands
    In your code...
    nice one mate, may I ask what the new reinand is for?

    nvm, I saw already, even better, now rei is in 3ds too :)
     
    Last edited by Damian666, Jan 31, 2016