mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Update NSLGameScanner.py
This commit is contained in:
parent
b427eb2cb5
commit
5b8aaf3244
@ -594,8 +594,15 @@ if app_ids and not os.path.exists(non_steam_launchers_path):
|
|||||||
# Define the new path of the NonSteamLaunchers folder
|
# Define the new path of the NonSteamLaunchers folder
|
||||||
new_path = os.path.join(compatdata_dir, str(first_app_id))
|
new_path = os.path.join(compatdata_dir, str(first_app_id))
|
||||||
|
|
||||||
# Move the NonSteamLaunchers folder to the new path
|
# Check if the current path exists before trying to move
|
||||||
shutil.move(current_path, new_path)
|
if os.path.exists(current_path):
|
||||||
|
try:
|
||||||
|
# Move the NonSteamLaunchers folder to the new path
|
||||||
|
shutil.move(current_path, new_path)
|
||||||
|
except Exception as e:
|
||||||
|
print(f"An error occurred while moving {current_path} to {new_path}: {e}")
|
||||||
|
else:
|
||||||
|
print(f"The directory {current_path} does not exist.")
|
||||||
|
|
||||||
# Define the path of the symbolic link
|
# Define the path of the symbolic link
|
||||||
symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')
|
symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')
|
||||||
|
Loading…
Reference in New Issue
Block a user