Skip to content

Commit ec64658

Browse files
reee copy printing
1 parent 86db030 commit ec64658

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

source/fs/fscopy.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ ErrCode_t FileCopy(const char *locin, const char *locout, u8 options){
3737
}
3838

3939
if (options & COPY_MODE_PRINT){
40-
gfx_printf("[ ]");
40+
gfx_printf("[ 0%%]");
4141
x += 16;
42-
gfx_con_setpos(x, y);
4342
}
4443

4544
buff = malloc(TConf.FSBuffSize);
@@ -62,8 +61,8 @@ ErrCode_t FileCopy(const char *locin, const char *locout, u8 options){
6261
sizeRemaining -= toCopy;
6362

6463
if (options & COPY_MODE_PRINT){
65-
gfx_printf("%3d%%", (u32)(((totalsize - sizeRemaining) * 100) / totalsize));
6664
gfx_con_setpos(x, y);
65+
gfx_printf("%3d%%", (u32)(((totalsize - sizeRemaining) * 100) / totalsize));
6766
}
6867

6968
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){
7877

7978
f_chmod(locout, in_info.fattrib, 0x3A);
8079

80+
if (options & COPY_MODE_PRINT){
81+
gfx_con_setpos(x - 16, y);
82+
}
83+
8184
//f_stat(locin, &in_info); //somehow stops fatfs from being weird
8285
return err;
8386
}

0 commit comments

Comments
 (0)