Update NSLGameScanner.py

This commit is contained in:
Roy 2024-11-04 16:35:30 -08:00 committed by GitHub
parent 3bcf1eb0bd
commit 59eaa5e32d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -953,7 +953,8 @@ def adjust_dosbox_launch_options(launch_command, game_id):
print(f"Error adjusting launch options: {e}")
return launch_command
else:
# For non-DOSBox games, return the original launch command
# For non-DOSBox games, return the original launch command without trailing spaces
launch_command = launch_command.strip()
return f'STEAM_COMPAT_DATA_PATH="{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/" %command% /command=runGame /gameId={game_id} /path="{launch_command}"'
# Define your paths
@ -985,6 +986,7 @@ else:
#Battle.net Scanner
# Define your mapping
flavor_mapping = {