Skip to content

Commit

Permalink
Remove unnecessary compattool check
Browse files Browse the repository at this point in the history
  • Loading branch information
sysmoon14 authored Feb 28, 2024
1 parent f5a33d3 commit e20000b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ def add_compat_tool(app_id, launchoptions):
if 'CompatToolMapping' not in config_data['InstallConfigStore']['Software']['Valve']['Steam']:
config_data['InstallConfigStore']['Software']['Valve']['Steam']['CompatToolMapping'] = {}
print(f"CompatToolMapping key not found in config.vdf, creating.")
if str(app_id) in config_data['InstallConfigStore']['Software']['Valve']['Steam']['CompatToolMapping'] and config_data['InstallConfigStore']['Software']['Valve']['Steam']['CompatToolMapping'][str(app_id)]['name'] == f'{compat_tool_name}':
return False
if 'chrome' in launchoptions:
return False
elif str(app_id) in config_data['InstallConfigStore']['Software']['Valve']['Steam']['CompatToolMapping']:
Expand Down

0 comments on commit e20000b

Please sign in to comment.