mirror of
https://github.com/derrod/legendary.git
synced 2024-09-30 01:08:31 +13:00
[core] Fix calculating install size (again)
This commit is contained in:
parent
bece6ef5de
commit
691fd9bc8f
1 changed files with 2 additions and 2 deletions
|
@ -878,9 +878,9 @@ class LegendaryCore:
|
||||||
results.warnings.add('This game is not marked for offline use (may still work).')
|
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)
|
# 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:
|
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
|
# todo when resuming, only check remaining files
|
||||||
_, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])
|
_, _, free = shutil.disk_usage(os.path.split(install.install_path)[0])
|
||||||
|
|
Loading…
Reference in a new issue