Compare commits

..

5 Commits
0.9.9 ... 1.0.1

Author SHA1 Message Date
Such Meme, Many Skill
2e61413627 Reformat to 32k clusters instead of 8k clusters 2019-12-12 18:46:27 +01:00
suchmememanyskill
ebe9815b7b Merge pull request #1 from suchmememanyskill/Rewrite
Finish rewrite
2019-12-12 13:53:52 +01:00
Such Meme, Many Skill
7f85f00db8 Modernise readme 2019-12-12 13:53:08 +01:00
Such Meme, Many Skill
8151afb446 Tidy up code a bit 2019-12-12 13:18:43 +01:00
Such Meme, Many Skill
c0f930e75d Fix spelling mistake + sd still being mounted after format error 2019-12-11 17:17:10 +01:00
6 changed files with 21 additions and 26 deletions

View File

@@ -10,12 +10,12 @@ Navigate around the menu's using the vol+, vol- and power buttons
## Functions ## Functions
- Navigate the SD card - Navigate the SD card
- Navigate the System partition of your sysnand - Navigate the System partition of your sysnand
- Interact with files
- Deleting, copying or moving files - Deleting, copying or moving files
- Launching payloads - Launching payloads files
- Viewing the hex data of a file
- Dumping your current firmware to sd - Dumping your current firmware to sd
- Formatting the sd card
## Screenshot
![screenshot](example.png)
# Credits # Credits
Based on [Lockpick_RCM](https://github.com/shchmue/Lockpick_RCM), and thus based on [Hekate](https://github.com/CTCaer/hekate) Based on [Lockpick_RCM](https://github.com/shchmue/Lockpick_RCM), and thus based on [Hekate](https://github.com/CTCaer/hekate)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -54,6 +54,7 @@ void fillmainmenu(){
for (i = 0; i < MAINMENU_AMOUNT; i++){ for (i = 0; i < MAINMENU_AMOUNT; i++){
switch (i + 1) { switch (i + 1) {
case 1: case 1:
case 5:
if (sd_mounted) if (sd_mounted)
mainmenu[i].property = 1; mainmenu[i].property = 1;
else else
@@ -69,12 +70,6 @@ void fillmainmenu(){
strcpy(mainmenu[i].name, "\nMount SD"); strcpy(mainmenu[i].name, "\nMount SD");
} }
break; break;
case 5:
if (sd_mounted)
mainmenu[i].property = 1;
else
mainmenu[i].property = -1;
break;
} }
} }
} }
@@ -134,16 +129,15 @@ void te_main(){
case SD_FORMAT: case SD_FORMAT:
res = makemenu(formatmenu, 4); res = makemenu(formatmenu, 4);
switch(res){ if (res >= 0){
case FORMAT_ALL_FAT32: if(makewaitmenu("Are you sure you want to format your sd?\nThis will delete everything on your SD card\nThis action is irreversible!\n\nPress Vol+/- to cancel\n", "Press Power to continue", 10)){
if (makewaitmenu("Are you sure you want to format your sd?\nThis action is irreversible!\n\nPress Vol+/- to cancel\n", "Press Power to continue", 10)) if (format(res)){
format(1); sd_unmount();
break; sd_mounted = false;
case FORMAT_EMUMMC:
if (makewaitmenu("Are you sure you want to format your sd?\nThis action is irreversible!\n\nPress Vol+/- to cancel\n", "Press Power to continue", 10))
format(0);
break;
} }
}
}
break; break;
case CREDITS: case CREDITS:

View File

@@ -37,8 +37,8 @@ enum toolsmenu_return {
}; };
enum formatmenu_return { enum formatmenu_return {
FORMAT_ALL_FAT32, FORMAT_EMUMMC = 0,
FORMAT_EMUMMC FORMAT_ALL_FAT32
}; };
//menu_item mainmenu[MAINMENU_AMOUNT]; //menu_item mainmenu[MAINMENU_AMOUNT];

View File

@@ -86,7 +86,7 @@ int dumpfirmware(){
gfx_printf("PKG1 version: %d\n", pkg1ver); gfx_printf("PKG1 version: %d\n", pkg1ver);
ret = f_mkdir("sd:/tegraexplorer"); ret = f_mkdir("sd:/tegraexplorer");
gfx_printf("Creating making sd:/tegraexplorer %d\n", ret); gfx_printf("Creating sd:/tegraexplorer %d\n", ret);
ret = f_mkdir("sd:/tegraexplorer/Firmware"); ret = f_mkdir("sd:/tegraexplorer/Firmware");
gfx_printf("Creating sd:/tegraexplorer/Firmware %d\n", ret); gfx_printf("Creating sd:/tegraexplorer/Firmware %d\n", ret);
@@ -124,14 +124,14 @@ int dumpfirmware(){
return fail; return fail;
} }
void format(int mode){ int format(int mode){
clearscreen(); clearscreen();
int res; int res;
bool fatalerror = false; bool fatalerror = false;
DWORD plist[] = {666, 61145088}; DWORD plist[] = {666, 61145088};
u32 timer, totalsectors; u32 timer, totalsectors;
BYTE work[FF_MAX_SS]; BYTE work[FF_MAX_SS];
DWORD clustsize = 16 * 512; DWORD clustsize = 32768;
BYTE formatoptions = 0; BYTE formatoptions = 0;
formatoptions |= (FM_FAT32); formatoptions |= (FM_FAT32);
//formatoptions |= (FM_SFD); //formatoptions |= (FM_SFD);
@@ -196,4 +196,5 @@ void format(int mode){
gfx_printf("\nPress any button to return%k\nTotal time taken: %ds", COLOR_WHITE, (get_tmr_s() - timer)); gfx_printf("\nPress any button to return%k\nTotal time taken: %ds", COLOR_WHITE, (get_tmr_s() - timer));
btn_wait(); btn_wait();
return fatalerror;
} }

View File

@@ -2,5 +2,5 @@
void displayinfo(); void displayinfo();
void displaygpio(); void displaygpio();
void format(int mode); int format(int mode);
int dumpfirmware(); int dumpfirmware();