Implement Tool for dumping User:/save
+ Finalize readme for release of 1.2.0
This commit is contained in:
@@ -36,12 +36,13 @@ menu_item shutdownmenu[7] = {
|
||||
{"Reboot to Atmosphere", COLOR_GREEN, AMS, -1}
|
||||
};
|
||||
|
||||
menu_item toolsmenu[5] = {
|
||||
menu_item toolsmenu[6] = {
|
||||
{"-- TOOLS --\n", COLOR_VIOLET, -1, 0},
|
||||
{"Back", COLOR_WHITE, -1, 1},
|
||||
{"\nDisplay Console Info", COLOR_GREEN, DISPLAY_INFO, 1},
|
||||
{"Display GPIO pins", COLOR_VIOLET, DISPLAY_GPIO, 1},
|
||||
{"Dump Firmware", COLOR_BLUE, DUMPFIRMWARE, 1}
|
||||
{"Dump Firmware", COLOR_BLUE, DUMPFIRMWARE, 1},
|
||||
{"Dump User Saves", COLOR_YELLOW, DUMPUSERSAVE, 1}
|
||||
};
|
||||
|
||||
menu_item formatmenu[4] = {
|
||||
@@ -125,7 +126,7 @@ void te_main(){
|
||||
break;
|
||||
|
||||
case TOOLS:
|
||||
res = makemenu(toolsmenu, 5);
|
||||
res = makemenu(toolsmenu, 6);
|
||||
|
||||
switch(res){
|
||||
case DISPLAY_INFO:
|
||||
@@ -137,6 +138,9 @@ void te_main(){
|
||||
case DUMPFIRMWARE:
|
||||
dumpfirmware();
|
||||
break;
|
||||
case DUMPUSERSAVE:
|
||||
dumpusersaves();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -34,7 +34,8 @@ enum shutdownmenu_return {
|
||||
enum toolsmenu_return {
|
||||
DISPLAY_INFO = 1,
|
||||
DISPLAY_GPIO,
|
||||
DUMPFIRMWARE
|
||||
DUMPFIRMWARE,
|
||||
DUMPUSERSAVE
|
||||
};
|
||||
|
||||
enum formatmenu_return {
|
||||
|
||||
@@ -141,6 +141,33 @@ int dumpfirmware(){
|
||||
return fail;
|
||||
}
|
||||
|
||||
void dumpusersaves(){
|
||||
int res;
|
||||
|
||||
mount_emmc("USER", 2);
|
||||
clearscreen();
|
||||
|
||||
res = f_mkdir("sd:/tegraexplorer");
|
||||
gfx_printf("Creating sd:/tegraexplorer, res: %d\nCopying:\n", res);
|
||||
|
||||
SWAPCOLOR(COLOR_GREEN);
|
||||
|
||||
res = copy_recursive("emmc:/save", "sd:/tegraexplorer");
|
||||
|
||||
SWAPCOLOR(COLOR_ORANGE);
|
||||
gfx_printf("\rResult copy_recursive() %d\n\n", res);
|
||||
|
||||
if (res){
|
||||
SWAPCOLOR(COLOR_RED);
|
||||
gfx_printf("Dump failed!\n");
|
||||
}
|
||||
else
|
||||
gfx_printf("Saves are located in SD:/tegraexplorer/save\n");
|
||||
|
||||
gfx_printf("Press any key to continue");
|
||||
btn_wait();
|
||||
}
|
||||
|
||||
int format(int mode){
|
||||
clearscreen();
|
||||
int res;
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
void displayinfo();
|
||||
void displaygpio();
|
||||
int format(int mode);
|
||||
int dumpfirmware();
|
||||
int dumpfirmware();
|
||||
void dumpusersaves();
|
||||
Reference in New Issue
Block a user