Implement Tool for dumping User:/save

+ Finalize readme for release of 1.2.0
This commit is contained in:
Such Meme, Many Skill
2020-01-07 21:53:02 +01:00
parent 008d3ab494
commit 6724f364b5
5 changed files with 42 additions and 7 deletions

View File

@@ -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;