mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Fix size variable.
This commit is contained in:
parent
f5462be061
commit
71428a0a4f
@ -190,12 +190,13 @@ bool installCIA(fs::MediaType destination, const std::string path, int curr, int
|
|||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
fstat(fileno(fd), &st);
|
fstat(fileno(fd), &st);
|
||||||
|
u64 size = (u64) (u32) st.st_size;
|
||||||
|
|
||||||
std::stringstream batchInstallStream;
|
std::stringstream batchInstallStream;
|
||||||
batchInstallStream << name << " (" << curr << "/" << total << ")" << "\n";
|
batchInstallStream << name << " (" << curr << "/" << total << ")" << "\n";
|
||||||
|
|
||||||
installInfo = batchInstallStream.str();
|
installInfo = batchInstallStream.str();
|
||||||
app::install(destination, fd, (u64) st.st_size, &onProgress);
|
app::install(destination, fd, size, &onProgress);
|
||||||
prevProgress = -1;
|
prevProgress = -1;
|
||||||
installInfo = "";
|
installInfo = "";
|
||||||
|
|
||||||
@ -220,7 +221,7 @@ bool installCIA(fs::MediaType destination, const std::string path, int curr, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
installInfo = batchInstallStream.str();
|
installInfo = batchInstallStream.str();
|
||||||
app::install(destination, fd, (u64) st.st_size, &onProgress);
|
app::install(destination, fd, size, &onProgress);
|
||||||
prevProgress = -1;
|
prevProgress = -1;
|
||||||
installInfo = "";
|
installInfo = "";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user