Skip to content
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

Add option to automatically delete VR plugins #10

Closed

Conversation

keton
Copy link
Contributor

@keton keton commented Jan 16, 2024

This change streamlines user experience when UEVR aware launcher is used. For example Rai-Pal with Raicuparta/rai-pal#178 merged.

Passing absolute path to game .exe in --attach= parameter together with specifying --launch= makes UEVRInjector able to check and automatically remove unwanted VR plugins. All user needs to do is press 'yes' when prompted.

Note: this change depends on and is rebased on top of #9

keton added 4 commits January 15, 2024 14:52
`--launch=` option accepts both executable paths and URIs for launcher
compatibility.

Some games like Sackboy or Telltale Expanse Series on Epic
will fail to launch correctly if .exe path is used directly. Instead they
require proper launcher URI.

This change will allow UEVR fronted to act as a launcher for games.

Example. Creating shortcut to:
```
UEVRInjector.exe "--launch=com.epicgames.launcher://apps/da36711940d4460da57d8d6ad67236a4%3Aa1afcdb1d2344232954be97d4b86b9a8%3Acfbbc006f3ee4ba0bfff3ffa46942f90?action=launch&silent=true" --attach=CosmicShake-Win64-Shipping
```

Will allow to automatically launch and inject Sponge Bob: Cosmic Shake on EGS
Some games don't respond well to be injected directly on boot.
Intro movies, menus, loading screens can appear broken or as a black
screen.

This commit augments `--attach` mode with `--delay` parameter allowing
UEVR injector to wait upon detecting target application. This gives user
time to get into the game without needing to go back to the injector UI
and pressing inject manually.

Example: `UEVRInjector.exe --attach=CosmicShake-Win64-Shipping --delay=30`
will wait for SpongeBob Cosmic Shake process to spawn, then wait 30s on
top and inject.
Some launchers, notably GOG Galaxy don't support launching game via
URI. They require command line option `Galaxy.exe /run:gameId`.

This commit adds command line parameter `--launch-args=` thant can accept
space separated argument list as as single string.
This commit allows option to automatically delete unwanted VR plugins.
All user needs to do is to click 'yes'.

Additionally game is checked before launch for being UE title and
warning is issued if it's not.

This requires `--attach=` parameter to be full path to game executable.
If only process name is passed old behavior is used instead.
@keton keton closed this Jan 16, 2024
@keton keton deleted the feat/automatically_delete_vr_plugins branch January 16, 2024 17:52
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.

1 participant