Skip to content

Launcher Support for Plugins - #324

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

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

Conversation

@AliciaBurrito

Copy link
Copy Markdown

Adds a launcher field that lets a plugin put a Windows program in front of the game. When the option is on, the launcher is started with the game's path and arguments, and it decides how the game gets started.

Useful since some games can't be launched directly and need something else to start them first, eg. their own launcher or a patcher, etc.

This happens within the Wine env itself, so it's compatible with both x86_64 and ARM64 prefixes.

New plugin field: launcher = <path to an .exe>. While the row is on, the run
script puts it in front of the game, so the shim runs
<launcher.exe> <game exe> <args> and the launcher decides how the game gets
started. It's all on the Windows side, so it works the same on Rosetta and
FEX, unlike an injected dylib which FEX's wine never loads.

Only for waitforexitandrun, only one launcher wins (first file by name), and
a launcher that isn't there is skipped and logged. Needed by NotHoyo, which
starts Star Rail through its own launcher this way.
@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