mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Show error if game installation could not be deleted
Kinda fixes #44
This commit is contained in:
parent
dad1c7f2c2
commit
e083b6f9b5
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue