@@ -1472,6 +1472,11 @@ def prepare_download(self, game: Game, base_game: Game = None, base_path: str =
14721472 prereq = dict (ids = new_manifest .meta .prereq_ids , name = new_manifest .meta .prereq_name ,
14731473 path = new_manifest .meta .prereq_path , args = new_manifest .meta .prereq_args )
14741474
1475+ uninstaller = None
1476+ if new_manifest .meta .uninstall_action_path :
1477+ uninstaller = dict (path = new_manifest .meta .uninstall_action_path ,
1478+ args = new_manifest .meta .uninstall_action_args )
1479+
14751480 offline = game .metadata .get ('customAttributes' , {}).get ('CanRunOffline' , {}).get ('value' , 'true' )
14761481 ot = game .metadata .get ('customAttributes' , {}).get ('OwnershipToken' , {}).get ('value' , 'false' )
14771482
@@ -1495,7 +1500,7 @@ def prepare_download(self, game: Game, base_game: Game = None, base_path: str =
14951500 can_run_offline = offline == 'true' , requires_ot = ot == 'true' ,
14961501 is_dlc = base_game is not None , install_size = anlres .install_size ,
14971502 egl_guid = egl_guid , install_tags = file_install_tag ,
1498- platform = platform )
1503+ platform = platform , uninstaller = uninstaller )
14991504
15001505 return dlm , anlres , igame
15011506
0 commit comments