mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 20:06:43 +00:00
Remove dumping user saves from tools
This has been replaced by a script: https://github.com/suchmememanyskill/TegraScript/blob/master/scripts/savedumper.te
This commit is contained in:
parent
6868ef3536
commit
14a3a39c01
6 changed files with 12 additions and 29 deletions
|
@ -29,6 +29,9 @@
|
||||||
#include "../soc/t210.h"
|
#include "../soc/t210.h"
|
||||||
#include "../utils/util.h"
|
#include "../utils/util.h"
|
||||||
|
|
||||||
|
#pragma GCC push_options
|
||||||
|
#pragma GCC optimize ("Os")
|
||||||
|
|
||||||
//#define DPRINTF(...) gfx_printf(__VA_ARGS__)
|
//#define DPRINTF(...) gfx_printf(__VA_ARGS__)
|
||||||
#define DPRINTF(...)
|
#define DPRINTF(...)
|
||||||
|
|
||||||
|
@ -1158,6 +1161,8 @@ int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type, int a
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC pop_options
|
||||||
|
|
||||||
void sdmmc_end(sdmmc_t *sdmmc)
|
void sdmmc_end(sdmmc_t *sdmmc)
|
||||||
{
|
{
|
||||||
if (!sdmmc->clock_stopped)
|
if (!sdmmc->clock_stopped)
|
||||||
|
|
|
@ -59,8 +59,7 @@ extern menu_entry mainmenu_shutdown[];
|
||||||
enum mainmenu_tools_return {
|
enum mainmenu_tools_return {
|
||||||
TOOLS_DISPLAY_INFO = 1,
|
TOOLS_DISPLAY_INFO = 1,
|
||||||
TOOLS_DISPLAY_GPIO,
|
TOOLS_DISPLAY_GPIO,
|
||||||
TOOLS_DUMPFIRMWARE,
|
TOOLS_DUMPFIRMWARE
|
||||||
TOOLS_DUMPUSERSAVE
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern menu_entry mainmenu_tools[];
|
extern menu_entry mainmenu_tools[];
|
||||||
|
|
|
@ -25,8 +25,7 @@ menu_entry mainmenu_tools[] = {
|
||||||
{"Back", COLOR_WHITE, {ISMENU}},
|
{"Back", COLOR_WHITE, {ISMENU}},
|
||||||
{"\nDisplay Console Info", COLOR_GREEN, {ISMENU}},
|
{"\nDisplay Console Info", COLOR_GREEN, {ISMENU}},
|
||||||
{"Display GPIO pins", COLOR_VIOLET, {ISMENU}},
|
{"Display GPIO pins", COLOR_VIOLET, {ISMENU}},
|
||||||
{"Dump Firmware", COLOR_BLUE, {ISMENU}},
|
{"Dump Firmware", COLOR_BLUE, {ISMENU}}
|
||||||
{"Dump User Saves", COLOR_YELLOW, {ISMENU}}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
menu_entry mainmenu_format[] = {
|
menu_entry mainmenu_format[] = {
|
||||||
|
|
|
@ -37,24 +37,12 @@ void MainMenu_SDCard(){
|
||||||
|
|
||||||
void MainMenu_EMMC(){
|
void MainMenu_EMMC(){
|
||||||
if (gfx_defaultWaitMenu("You're about to enter EMMC\nModifying anything here can result in a BRICK!\n\nPlease only continue if you know what you're doing", 4)){
|
if (gfx_defaultWaitMenu("You're about to enter EMMC\nModifying anything here can result in a BRICK!\n\nPlease only continue if you know what you're doing", 4)){
|
||||||
/*
|
|
||||||
connect_mmc(SYSMMC);
|
|
||||||
|
|
||||||
if (!mount_mmc(emmc_fs_entries[res - 2], res - 1))
|
|
||||||
fileexplorer("emmc:/", 1);
|
|
||||||
*/
|
|
||||||
makeMmcMenu(SYSMMC);
|
makeMmcMenu(SYSMMC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainMenu_EMUMMC(){
|
void MainMenu_EMUMMC(){
|
||||||
/*
|
makeMmcMenu(EMUMMC);
|
||||||
connect_mmc(EMUMMC);
|
|
||||||
|
|
||||||
if (!mount_mmc(emmc_fs_entries[res - 5], res - 4))
|
|
||||||
fileexplorer("emmc:/", 1);
|
|
||||||
*/
|
|
||||||
makeMmcMenu(EMUMMC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainMenu_MountSD(){
|
void MainMenu_MountSD(){
|
||||||
|
@ -62,8 +50,7 @@ void MainMenu_MountSD(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainMenu_Tools(){
|
void MainMenu_Tools(){
|
||||||
//res = makemenu(toolsmenu, 8);
|
res = menu_make(mainmenu_tools, 4, "-- Tools Menu --");
|
||||||
res = menu_make(mainmenu_tools, 5, "-- Tools Menu --");
|
|
||||||
|
|
||||||
switch(res){
|
switch(res){
|
||||||
case TOOLS_DISPLAY_INFO:
|
case TOOLS_DISPLAY_INFO:
|
||||||
|
@ -71,21 +58,14 @@ void MainMenu_Tools(){
|
||||||
break;
|
break;
|
||||||
case TOOLS_DISPLAY_GPIO:
|
case TOOLS_DISPLAY_GPIO:
|
||||||
displaygpio();
|
displaygpio();
|
||||||
//makeMmcMenu(SYSMMC);
|
|
||||||
break;
|
break;
|
||||||
case TOOLS_DUMPFIRMWARE:
|
case TOOLS_DUMPFIRMWARE:
|
||||||
dumpfirmware(SYSMMC);
|
dumpfirmware(SYSMMC);
|
||||||
break;
|
break;
|
||||||
case TOOLS_DUMPUSERSAVE:
|
|
||||||
if ((res = utils_mmcMenu()) > 0)
|
|
||||||
dumpusersaves(res);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainMenu_SDFormat(){
|
void MainMenu_SDFormat(){
|
||||||
//res = makemenu(formatmenu, 4);
|
|
||||||
res = menu_make(mainmenu_format, 3, "-- Format Menu --");
|
res = menu_make(mainmenu_format, 3, "-- Format Menu --");
|
||||||
|
|
||||||
if (res > 0){
|
if (res > 0){
|
||||||
|
|
|
@ -159,7 +159,7 @@ int dumpfirmware(int mmc){
|
||||||
|
|
||||||
return fail;
|
return fail;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
void dumpusersaves(int mmc){
|
void dumpusersaves(int mmc){
|
||||||
connect_mmc(mmc);
|
connect_mmc(mmc);
|
||||||
mount_mmc("USER", 2);
|
mount_mmc("USER", 2);
|
||||||
|
@ -180,6 +180,7 @@ void dumpusersaves(int mmc){
|
||||||
gfx_printf("Press any key to continue");
|
gfx_printf("Press any key to continue");
|
||||||
hidWait();
|
hidWait();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
int format(int mode){
|
int format(int mode){
|
||||||
gfx_clearscreen();
|
gfx_clearscreen();
|
||||||
|
|
|
@ -4,4 +4,3 @@ void displayinfo();
|
||||||
void displaygpio();
|
void displaygpio();
|
||||||
int format(int mode);
|
int format(int mode);
|
||||||
int dumpfirmware(int mmc);
|
int dumpfirmware(int mmc);
|
||||||
void dumpusersaves(int mmc);
|
|
Loading…
Reference in a new issue