Update NSLGameScanner.py

This commit is contained in:
Roy 2024-06-22 04:59:16 -07:00 committed by GitHub
parent 66c29c338a
commit 3109554f82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -564,7 +564,7 @@ for launcher_name, folder in folder_names.items():
# Check if the new path already exists
if os.path.exists(new_path):
print(f'{new_path} already exists. Skipping renaming.')
print(f'{new_path} already exists. Skipping renaming and symlinking.')
else:
# Rename the folder
os.rename(current_path, new_path)
@ -582,6 +582,7 @@ for launcher_name, folder in folder_names.items():
else:
print(f'{launcher_name}: {folder} does not exist')
# Check if the NonSteamLaunchers folder exists
non_steam_launchers_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')
if app_ids and os.path.exists(non_steam_launchers_path):