tkashkin / GOGWrapper

Launch GOG games with GOG Galaxy using shortcuts and add shortcuts for GOG games into Steam Library
32 stars 1 forks source link

Games do not launch from GOG Galaxy #1

Closed lbacud closed 6 years ago

lbacud commented 6 years ago

GOG changed the command to launch games to /command=launchGame

tkashkin commented 6 years ago

Works on Galaxy 1.2.26. /command=launch still opens game page, /command=launchGame does nothing. There's no command to directly launch a game afaik.

Currently games are launched in a very hacky way (simulating click in button location). Maybe you have DPI scaling enabled and button is in different location?

lbacud commented 6 years ago

My mistake. The command is "/command=runGame"

For example, the launch command I use for Witcher 3 is "C:\Program Files (x86)\GOG Galaxy\GalaxyClient.exe" /gameId=1495134320 /command=runGame /path="C:\GOG Games\The Witcher 3 Wild Hunt GOTY"

tkashkin commented 6 years ago

It works! Was this command added recently? I couldn't find it before.

lbacud commented 6 years ago

It was mentioned in a bug report for the Playnite launcher. So all we need to do is find the path of the game itself.