Skip to content

Commit

Permalink
Update NSLGameScanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Jul 16, 2024
1 parent 6595e98 commit 556dc60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,12 +1207,11 @@ def dbpath_to_game(paths):

#Legacy Games Scanner
legacy_dir = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{legacy_launcher}/pfx/drive_c/Program Files/Legacy Games/"
user_reg_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{legacy_launcher}/pfx/user.reg"

if not os.path.exists(legacy_dir) or not os.path.exists(user_reg_path):
print("Path not found. Skipping Legacy Games Scanner.")
if not os.path.exists(legacy_dir):
print("Legacy directory not found. Skipping creation.")
else:
print("Directory and user.reg file found.")
user_reg_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{legacy_launcher}/pfx/user.reg"
with open(user_reg_path, 'r') as file:
user_reg = file.read()

Expand Down

0 comments on commit 556dc60

Please sign in to comment.