-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit lauch command #297
Comments
You can use "Custom script" compatibility layer instead of Wine to achieve this. GameHub will run this script instead of running game. GameHub will pass some arguments to this script. Default script template uses these arguments: #!/bin/bash
GH_EXECUTABLE="$1"
GH_INSTALL_DIR="$2"
GH_GAME_ID="$3"
GH_GAME_ID_FULL="$4"
GH_GAME_NAME="$5"
GH_GAME_NAME_ESCAPED="$6" If you want to use it for multiple games, you can create a "Custom emulator" that will use script itself. |
Thx! Tho i have another issue related, the window won't open, i click "Edit Script" and nothing happens. I'm using KDE if that makes a difference. And I'm on Arch |
It should be opened in default text editor, but it's possible that it tries to run script instead of editing it. |
That works, but it kind of beats the point of a game launcher. It would be much better if you GameHub provided me with a way to edit the launch command like steam does |
Yes, it can be improved. I'll think how can it be implemented. |
Thx. I'll close this now |
Improved GOG API error handling Small UI tweaks
@MagicRB since 075168a you can edit game's arguments and override launch command like possible in Steam. By default game args will be appended at the end of default launch command. It should work for most compatibility layers if I haven't missed something. Let me know if something is wrong. |
Improved GOG API error handling Small UI tweaks
Improved GOG API error handling Small UI tweaks Former-commit-id: 075168a
Improved GOG API error handling Small UI tweaks Former-commit-id: 6d7e801
How can run you separate commands after using $command? I've tried EDIT: I'm basically trying to run a command that copies my save files after the game closes. Is there a way of easily doing that within GameHub? |
I'd like to be able to edit the command GameHub uses to launch my game. So instead of "WINEPREFIX=/whatever wine whatever.exe" i'd like to wrap that whole thing in another command, for example "gamemoderun 'WINEPREFIX=/whatever wine whatever.exe'". If this is already possible, I'm sorry for opening this issue. Thx
The text was updated successfully, but these errors were encountered: