[core] Show error if game installation could not be deleted

Kinda fixes #44
This commit is contained in:
derrod 2020-05-25 13:01:12 +02:00
parent dad1c7f2c2
commit e083b6f9b5

View file

@ -752,7 +752,8 @@ class LegendaryCore:
def uninstall_game(self, installed_game: InstalledGame, delete_files=True):
self.lgd.remove_installed_game(installed_game.app_name)
if delete_files:
delete_folder(installed_game.install_path, recursive=True)
if not delete_folder(installed_game.install_path, recursive=True):
self.log.error(f'Unable to delete "{installed_game.install_path}" from disk, please remove manually.')
def prereq_installed(self, app_name):
igame = self.lgd.get_installed_game(app_name)