Skip to content

Commit

Permalink
Fixed TF2 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kataiser committed Oct 17, 2019
1 parent 5b246f6 commit d2a14cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TF2 Rich Presence/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def parse_tasklist(self):

# don't detect gmod (or any other program named hl2.exe)
if self.process_data['TF2']['running']:
hl2_exe_path = self.get_info_from_pid(self.parsed_tasklist['hl2.exe'], ('path',))
hl2_exe_path = self.get_info_from_pid(self.parsed_tasklist['hl2.exe'], ('path',))['path']

if 'Team Fortress 2' not in hl2_exe_path:
self.log.error(f"Found non-TF2 hl2.exe at {hl2_exe_path}")
Expand Down

0 comments on commit d2a14cb

Please sign in to comment.