Homebrew Compiling menuhax_manager

  • Thread starter Thread starter 3xkrazy
  • Start date Start date
  • Views Views 2,764
  • Replies Replies 11

3xkrazy

Well-Known Member
Member
Joined
Jun 2, 2013
Messages
299
Reaction score
64
Trophies
0
XP
299
Country
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.
 
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.
It's part of *hax2.5. menu_payload/menu_ropbin.s, line 581.
 
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!

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,
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.
 
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/
 

Attachments

Site & Scene News

Popular threads in this forum