diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-02 21:42:29 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-06 06:22:38 +0200 |
commit | 5d0a051abb17a7ece07786849c736051969a039b (patch) | |
tree | dba4301c7a7cfb44d4cb955ed6387b72549b60e9 /src | |
parent | Merge pull request #10994 from liamwhite/ue4-preferred (diff) | |
download | yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar.gz yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar.bz2 yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar.lz yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar.xz yuzu-5d0a051abb17a7ece07786849c736051969a039b.tar.zst yuzu-5d0a051abb17a7ece07786849c736051969a039b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 20532416c..83f502351 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()) { |