Implement folder copy

+ Change error messaging internally
+ inproved recursive file deletion
This commit is contained in:
Such Meme, Many Skill
2020-01-04 20:18:26 +01:00
parent 6d75aa688c
commit ef76834ef4
8 changed files with 189 additions and 50 deletions

View File

@@ -329,15 +329,10 @@ void gfx_put_big_sep()
gfx_con.fntsz = prevFontSize;
}
void gfx_printf(const char *fmt, ...)
void gfx_vprintf(const char *fmt, va_list ap)
{
if (gfx_con.mute)
return;
va_list ap;
int fill, fcnt;
va_start(ap, fmt);
while(*fmt)
{
if(*fmt == '%')
@@ -389,7 +384,7 @@ void gfx_printf(const char *fmt, ...)
gfx_putc('%');
break;
case '\0':
goto out;
return;
default:
gfx_putc('%');
gfx_putc(*fmt);
@@ -400,8 +395,17 @@ void gfx_printf(const char *fmt, ...)
gfx_putc(*fmt);
fmt++;
}
}
void gfx_printf(const char *fmt, ...)
{
if (gfx_con.mute)
return;
va_list ap;
va_start(ap, fmt);
gfx_vprintf(fmt, ap);
out:
va_end(ap);
}