Add file copy/move

This commit is contained in:
SuchMemeManySkill
2020-12-26 01:05:33 +01:00
parent a74a8814e1
commit ab5c5e799e
12 changed files with 138 additions and 43 deletions

View File

@@ -23,6 +23,7 @@ const char *TEErrors[] = {
[TE_EXCEPTION_UNDEFINED - 1] = "E Undefined",
[TE_EXCEPTION_PREF_ABORT - 1] = "E Pref abort",
[TE_EXCEPTION_DATA_ABORT - 1] = "E Data abort",
[TE_ERR_SAME_LOC - 1] = "Same copy location",
};
const char *GetErrStr(u32 err){
@@ -39,6 +40,9 @@ const char *GetErrStr(u32 err){
#define leny 240
void DrawError(ErrCode_t err){
if (err.err == 0)
return;
SETCOLOR(COLOR_ORANGE, COLOR_DARKGREY);
gfx_box(lx, ly, lx + lenx, ly + leny, COLOR_ORANGE);
gfx_boxGrey(lx + 16, ly + 16, lx + lenx - 16, ly + leny - 16, 0x33);