mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-12-26 11:26:05 +00:00
Fix spelling mistake + sd still being mounted after format error
This commit is contained in:
parent
47df1b9cd1
commit
c0f930e75d
3 changed files with 14 additions and 7 deletions
|
@ -136,12 +136,18 @@ void te_main(){
|
|||
|
||||
switch(res){
|
||||
case FORMAT_ALL_FAT32:
|
||||
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(1);
|
||||
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(1))
|
||||
sd_mounted = false;
|
||||
}
|
||||
|
||||
break;
|
||||
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);
|
||||
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(0))
|
||||
sd_mounted = false;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -86,7 +86,7 @@ int dumpfirmware(){
|
|||
gfx_printf("PKG1 version: %d\n", pkg1ver);
|
||||
|
||||
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");
|
||||
gfx_printf("Creating sd:/tegraexplorer/Firmware %d\n", ret);
|
||||
|
@ -124,7 +124,7 @@ int dumpfirmware(){
|
|||
return fail;
|
||||
}
|
||||
|
||||
void format(int mode){
|
||||
int format(int mode){
|
||||
clearscreen();
|
||||
int res;
|
||||
bool fatalerror = false;
|
||||
|
@ -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));
|
||||
btn_wait();
|
||||
return fatalerror;
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
void displayinfo();
|
||||
void displaygpio();
|
||||
void format(int mode);
|
||||
int format(int mode);
|
||||
int dumpfirmware();
|
Loading…
Reference in a new issue