aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2023-07-05 12:02:35 +0000
committeryuzubot <yuzu@yuzu-emu.org>2023-07-05 12:02:35 +0000
commitdf40fee3ac56ed160d2fb5c4ae18e264d8c6eab3 (patch)
tree2b10669586b1f89fe4aea6042e302b3c42341e88
parent30a2f03489a1ef82f1cfbf02a462ae0d21cd9d18 (diff)
"Merge Tagged PR 10999"mainline-0-1487
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 20532416c2..83f5023517 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -2929,10 +2929,10 @@ void GMainWindow::OnMenuInstallToNAND() {
int remaining = filenames.size();
- // This would only overflow above 2^43 bytes (8.796 TB)
+ // This would only overflow above 2^51 bytes (2.252 PB)
int total_size = 0;
for (const QString& file : files) {
- total_size += static_cast<int>(QFile(file).size() / 0x1000);
+ total_size += static_cast<int>(QFile(file).size() / 1_MiB);
}
if (total_size < 0) {
LOG_CRITICAL(Frontend, "Attempting to install too many files, aborting.");
@@ -3088,7 +3088,7 @@ InstallResult GMainWindow::InstallNCA(const QString& filename) {
return false;
}
- std::array<u8, 0x1000> buffer{};
+ std::vector<u8> buffer(1_MiB);
for (std::size_t i = 0; i < src->GetSize(); i += buffer.size()) {
if (install_progress->wasCanceled()) {