Skip to content

Commit

Permalink
slotTool 1.4
Browse files Browse the repository at this point in the history
This slotTool version doesn't need special otherapps with cfg:s added. It uses a process takeover .xml to get mset's cfg:i in order to install usm. Note the change that you need to run this in a folder with the provided .xml file (at least in a userland context).

This version is also entrypoint agnostic, it will even work
with exploits that don't use otherapp (ex. ninjhax).
  • Loading branch information
zoogie authored and zoogie committed Jul 26, 2020
1 parent 623d2aa commit c563a78
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
4 changes: 2 additions & 2 deletions slotTool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ DATA := data
INCLUDES := include include/graphics include/services
#ROMFS := romfs

APP_TITLE := slotTool
APP_TITLE := slotTool v1.4
APP_DESCRIPTION := unSAFE_MODE installer
APP_AUTHOR := Zoogie

Expand All @@ -57,7 +57,7 @@ APP_SYSTEM_MODE_EXT := Legacy
RSF_FILE := resources/cia.rsf

VERSION_MAJOR := 1
VERSION_MINOR := 3
VERSION_MINOR := 4
VERSION_MICRO := 0

#---------------------------------------------------------------------------------
Expand Down
Binary file modified slotTool/resources/audio.wav
Binary file not shown.
8 changes: 8 additions & 0 deletions slotTool/slotTool.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<targets selectable="false">
<title mediatype="0">0004001000021000</title>
<title mediatype="0">0004001000022000</title>
<title mediatype="0">0004001000020000</title>
<title mediatype="0">0004001000027000</title>
<title mediatype="0">0004001000028000</title>
<title mediatype="0">0004001000026000</title>
</targets>
24 changes: 15 additions & 9 deletions slotTool/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Result inject_slots(){
int cursor=0;
int menu(u32 n){
consoleClear();
printf("slotTool v1.3 - zoogie\n\n");
printf("slotTool v1.4 - zoogie\n\n");

check_slots();

Expand Down Expand Up @@ -147,22 +147,27 @@ int main(int argc, char* argv[])
{
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
printf("slotTool v1.3 - zoogie\n");
printf("slotTool v1.4 - zoogie\n");

Result res;
//u32 SIZE=0xC00;
u32 fail=0;
res = ptmSysmInit();
res = nsInit();
res = _cfguInit();
printf("cfgInit: %08X\n", (int)res);
res = _CFG_GetConfigInfoBlk4(0xC00, 0x80000, workbuf);
printf("cfgTest: %08X\n", (int)res);
printf("cfgTest: %08X\n\n", (int)res);

if(res){
printf("WHAT IS WRONG WITH THE ELF?\nPlease hold power to turn off :(\n");
while(1) gspWaitForVBlank();
printf("WHAT IS WRONG WITH THE ELF?\n");
printf("A: I need my takeover .xml!\n");
printf("(hint: sd:/3ds/slotTool/slotTool.xml)\n\n");
printf("Press any key to exit :(\n");
fail=1;
}
else{
menu(0);
}

menu(0);

while (aptMainLoop())
{
Expand All @@ -171,7 +176,8 @@ int main(int argc, char* argv[])
hidScanInput();
u32 kDown = hidKeysDown();

if(kDown){
if(kDown & 0xfff){
if(fail) break;
res = menu(kDown);
if(res) break;
}
Expand Down

0 comments on commit c563a78

Please sign in to comment.