mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-04-26 01:59:55 -05:00
Fix file mode copy file
This commit is contained in:
parent
9ca4c6ff52
commit
093b1bc178
|
|
@ -607,7 +607,7 @@ void fs::dumpAllUserSaves(void *a)
|
||||||
}
|
}
|
||||||
fs::unmountSave();
|
fs::unmountSave();
|
||||||
}
|
}
|
||||||
delete c;
|
fs::copyArgsDestroy(c);
|
||||||
t->finished = true;
|
t->finished = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -644,7 +644,7 @@ void fs::dumpAllUsersAllSaves(void *a)
|
||||||
fs::unmountSave();
|
fs::unmountSave();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete c;
|
fs::copyArgsDestroy(c);
|
||||||
t->finished = true;
|
t->finished = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ static void copyFileThreaded_t(void *a)
|
||||||
threadInfo *t = (threadInfo *)a;
|
threadInfo *t = (threadInfo *)a;
|
||||||
fs::copyArgs *in = (fs::copyArgs *)t->argPtr;
|
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);
|
fs::copyFile(in->src, in->dst, t);
|
||||||
if(in->cleanup)
|
if(in->cleanup)
|
||||||
|
|
@ -291,7 +291,7 @@ static void copyFileCommit_t(void *a)
|
||||||
threadInfo *t = (threadInfo *)a;
|
threadInfo *t = (threadInfo *)a;
|
||||||
fs::copyArgs *in = (fs::copyArgs *)t->argPtr;
|
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->setMax(fs::fsize(in->src));
|
||||||
in->prog->update(0);
|
in->prog->update(0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,7 @@ static void infoPanelDraw(void *a)
|
||||||
rectWidth = width - 20;
|
rectWidth = width - 20;
|
||||||
|
|
||||||
iconX = (width / 2) - 128;
|
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::drawRect(panel, &ui::rectLt, 10, drawY, rectWidth, 38);
|
||||||
gfx::drawTextf(panel, 18, 20, drawY + 10, &ui::txtCont, data::getTitleNameByTID(d->tid).c_str());
|
gfx::drawTextf(panel, 18, 20, drawY + 10, &ui::txtCont, data::getTitleNameByTID(d->tid).c_str());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user