Skip to content

Launch Hooks for Plugins - #345

Closed
AliciaBurrito wants to merge 1 commit into
NotProtonNot:plugin-pt3from
AliciaBurrito:plugin-launch-hooks
Closed

AliciaBurrito wants to merge 1 commit into
NotProtonNot:plugin-pt3from
AliciaBurrito:plugin-launch-hooks

Conversation

@AliciaBurrito

Copy link
Copy Markdown
Contributor

Adds two plugin fields, prelaunch and postexit. Each points to a script on the Mac side. prelaunch runs right before the game starts, postexit right 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.

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.
@NotProtonNot

Copy link
Copy Markdown
Owner

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants