Skip to content

Commit

Permalink
Merge pull request #47 from Root-Core/winetricks_ret_code
Browse files Browse the repository at this point in the history
Evaluate the returncode of the Winetricks process
  • Loading branch information
R1kaB3rN committed Mar 18, 2024
2 parents 2eb3a6d + cd26dc0 commit 7c31868
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ def protontricks(verb):
process.wait()
_killhanging()

# Check if the verb failed (eg. access denied)
retc = process.returncode
if retc != 0:
log.warn(f'Winetricks failed running verb "{verb}" with status {retc}.')
return False

# Check if verb recorded to winetricks log
if not checkinstalled(verb):
log.warn('Not recorded as installed: winetricks ' + verb + ', forcing!')
Expand Down

0 comments on commit 7c31868

Please sign in to comment.