mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Removed "/path=" from GoG Launch Options
This commit is contained in:
parent
a184b4d07c
commit
350d243e28
@ -667,7 +667,6 @@ def getGogGameInfo(filePath):
|
||||
with open(filePath, 'r') as file:
|
||||
game_id = None
|
||||
game_name = None
|
||||
exe_path = None
|
||||
for line in file:
|
||||
split_line = line.split("=")
|
||||
if len(split_line) > 1:
|
||||
@ -679,15 +678,10 @@ def getGogGameInfo(filePath):
|
||||
game_name = re.findall(r'\"(.+?)\"', split_line[1])
|
||||
if game_name:
|
||||
game_name = game_name[0]
|
||||
if "exe" in line and "GOG Galaxy" in line and not "unins000.exe" in line:
|
||||
exe_path = re.findall(r'\"(.+?)\"', split_line[1])
|
||||
if exe_path:
|
||||
exe_path = exe_path[0].replace('\\\\', '\\')
|
||||
if game_id and game_name and exe_path:
|
||||
game_dict[game_name] = {'id': game_id, 'exe': exe_path}
|
||||
if game_id and game_name:
|
||||
game_dict[game_name] = {'id': game_id}
|
||||
game_id = None
|
||||
game_name = None
|
||||
exe_path = None
|
||||
|
||||
return game_dict
|
||||
|
||||
@ -704,7 +698,7 @@ else:
|
||||
|
||||
for game, game_info in game_dict.items():
|
||||
if game_info['id']:
|
||||
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']}\""
|
||||
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe\""
|
||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/\""
|
||||
create_new_entry(exe_path, game, launch_options, start_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user