Add 'progress' indicator to CopySingle function.

This commit is contained in:
TomAwezome 2022-10-20 13:46:07 -04:00
parent a8751b020f
commit da01da14eb

View file

@ -57,7 +57,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
out_file = FOpen(f2, "w", count);
if (out_file)
{
"Copying %s to %s\n", f1, f2;
"Copying %s to %s ", f1, f2;
j = size;
while (count > 0)
{
@ -65,6 +65,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
{
n = COPY_BUF_BLKS;
i = n << BLK_SIZE_BITS;
".";
}
else
{
@ -76,6 +77,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
count -= n;
j -= n << BLK_SIZE_BITS;
}
"\n";
out_file->flags |= FF_USE_OLD_DATETIME;
out_file->de.datetime = in_file->de.datetime;
out_file->de.size = size;