mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
attempted to fix gog parsing
This commit is contained in:
parent
d7f3353c82
commit
9005c42f4b
@ -787,12 +787,13 @@ else:
|
|||||||
game_dict = getGogGameInfo(registry_file_path)
|
game_dict = getGogGameInfo(registry_file_path)
|
||||||
|
|
||||||
for game, game_info in game_dict.items():
|
for game, game_info in game_dict.items():
|
||||||
if game_info['id']:
|
if game_info['id'] and game_info['exe']:
|
||||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/\" %command% /command=runGame /gameId={game_info['id']} /path=\"{game_info['exe']}\""
|
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/\" %command% /command=runGame /gameId={game_info['id']} /path=\"{game_info['exe']}\""
|
||||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe\""
|
exe_path = f"\"{game_info['exe']}\""
|
||||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/\""
|
start_dir = os.path.dirname(exe_path)
|
||||||
create_new_entry(exe_path, game, launch_options, start_dir)
|
create_new_entry(exe_path, game, launch_options, start_dir)
|
||||||
|
|
||||||
|
|
||||||
# End of Gog Galaxy Scanner
|
# End of Gog Galaxy Scanner
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user