Fix file mode copy file

This commit is contained in:
J-D-K 2021-10-13 17:20:42 -04:00
parent 9ca4c6ff52
commit 093b1bc178
3 changed files with 5 additions and 5 deletions

View File

@ -607,7 +607,7 @@ void fs::dumpAllUserSaves(void *a)
}
fs::unmountSave();
}
delete c;
fs::copyArgsDestroy(c);
t->finished = true;
}
@ -644,7 +644,7 @@ void fs::dumpAllUsersAllSaves(void *a)
fs::unmountSave();
}
}
delete c;
fs::copyArgsDestroy(c);
t->finished = true;
}

View File

@ -185,7 +185,7 @@ static void copyFileThreaded_t(void *a)
threadInfo *t = (threadInfo *)a;
fs::copyArgs *in = (fs::copyArgs *)t->argPtr;
t->status->setStatus(ui::getUICString("threadStatusCopyingFile", 0), in->src);
t->status->setStatus(ui::getUICString("threadStatusCopyingFile", 0), in->src.c_str());
fs::copyFile(in->src, in->dst, t);
if(in->cleanup)
@ -291,7 +291,7 @@ static void copyFileCommit_t(void *a)
threadInfo *t = (threadInfo *)a;
fs::copyArgs *in = (fs::copyArgs *)t->argPtr;
t->status->setStatus(ui::getUICString("threadStatusCopyingFile", 0), in->src);
t->status->setStatus(ui::getUICString("threadStatusCopyingFile", 0), in->src.c_str());
in->prog->setMax(fs::fsize(in->src));
in->prog->update(0);

View File

@ -318,7 +318,7 @@ static void infoPanelDraw(void *a)
rectWidth = width - 20;
iconX = (width / 2) - 128;
gfx::texDraw(panel, data::getTitleIconByTID(d->tid), iconX, 32);
gfx::texDraw(panel, data::getTitleIconByTID(d->tid), iconX, 24);
gfx::drawRect(panel, &ui::rectLt, 10, drawY, rectWidth, 38);
gfx::drawTextf(panel, 18, 20, drawY + 10, &ui::txtCont, data::getTitleNameByTID(d->tid).c_str());