1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-09 13:41:45 +00:00

reee copy printing

This commit is contained in:
suchmememanyskill 2021-01-11 21:37:09 +01:00
parent 86db030bda
commit ec64658a6a

View file

@ -37,9 +37,8 @@ ErrCode_t FileCopy(const char *locin, const char *locout, u8 options){
}
if (options & COPY_MODE_PRINT){
gfx_printf("[ ]");
gfx_printf("[ 0%%]");
x += 16;
gfx_con_setpos(x, y);
}
buff = malloc(TConf.FSBuffSize);
@ -62,8 +61,8 @@ ErrCode_t FileCopy(const char *locin, const char *locout, u8 options){
sizeRemaining -= toCopy;
if (options & COPY_MODE_PRINT){
gfx_printf("%3d%%", (u32)(((totalsize - sizeRemaining) * 100) / totalsize));
gfx_con_setpos(x, y);
gfx_printf("%3d%%", (u32)(((totalsize - sizeRemaining) * 100) / totalsize));
}
if (options & COPY_MODE_CANCEL && btn_read() & (BTN_VOL_DOWN | BTN_VOL_UP)){
@ -78,6 +77,10 @@ ErrCode_t FileCopy(const char *locin, const char *locout, u8 options){
f_chmod(locout, in_info.fattrib, 0x3A);
if (options & COPY_MODE_PRINT){
gfx_con_setpos(x - 16, y);
}
//f_stat(locin, &in_info); //somehow stops fatfs from being weird
return err;
}