Repository navigation
Launch Hooks for Plugins - #345
Closed
AliciaBurrito wants to merge 1 commit into
Closed
AliciaBurrito wants to merge 1 commit into
AliciaBurrito wants to merge 1 commit into
Conversation
Some games check what started them, and a launcher row puts a Windows program between steam.exe and the game, so those games can't have one. Add two Mac-side plugin fields, prelaunch and postexit, run just before the game starts and just after it exits, with no Windows process in front of the game. Each is a home-relative executable, called as "<script> prelaunch <game>" or "<script> postexit <status> <game>" with WINEPREFIX in the environment. A failing hook is logged and the launch goes on. Rows are present-scopable, so one plugin can carry a different row per game.
Owner
|
Merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two plugin fields,
prelaunchandpostexit. Each points to a script on the Mac side.prelaunchruns right before the game starts,postexitright after it exits.This is for games that can't have a launcher between steam.exe and the game, for whatever reason. Or can be helpful for flexibility in general. A plugin can now prepare the prefix (copy files in, move files around, etc.) and undo it afterwards, while steam.exe starts the game itself as usual without the game complaining.