From 691fd9bc8f2277972e57367c2be8a7c8170a6777 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 16 Dec 2020 12:15:18 +0100 Subject: [PATCH] [core] Fix calculating install size (again) --- legendary/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index 5f4b43f..6e0e193 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -878,9 +878,9 @@ class LegendaryCore: results.warnings.add('This game is not marked for offline use (may still work).') # check if enough disk space is free (dl size is the approximate amount the installation will grow) - min_disk_space = analysis.uncompressed_dl_size + min_disk_space = analysis.install_size if updating: - min_disk_space += analysis.biggest_file_size + min_disk_space += analysis.biggest_file_size + analysis.install_size # todo when resuming, only check remaining files _, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])