Skip to content

Conversation

@xXJSONDeruloXx
Copy link
Contributor

@xXJSONDeruloXx xXJSONDeruloXx commented Dec 29, 2025

Adding the ability to pass in some args to the linux_setup.sh script to better facilitate various projects that attempt to automate OptiScaler installation (Decky Framegen, Goverlay, ProtonPlus etc).

Currently, each program needs its own logic or bespoke installation and removal scripting, but if this is built into the upstream script, then these programs can just worry about getting all the opti files into the correct dir in the game, then run something like:

./setup_linux.sh --filename=dxgi.dll --overwrite=y --using_nvidia=n --using_dlss=y

Which greatly simplifies Opti integration in a variety of linux tools.

@xXJSONDeruloXx xXJSONDeruloXx marked this pull request as ready for review December 29, 2025 16:37
@xXJSONDeruloXx xXJSONDeruloXx marked this pull request as draft December 29, 2025 16:40
@FakeMichau
Copy link
Collaborator

A bit crude but if it works for you then that's fine.
But I would like to ask for two things:

  • An option to use -h and --help that would explain those parameters and how to use them
  • Way to skip the "Press Enter to exit" at the end to make the script automatically exit when used with those arguments

@xXJSONDeruloXx
Copy link
Contributor Author

@FakeMichau good catch with the Enter press skip. Added a help arg and skip "Press Enter to exit" if any args passed.

If you feel the current approach overall is a bit clunky though, I am open to alternatives.

Copy link
Collaborator

@FakeMichau FakeMichau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the help and enter skip to the uninstaller as well?

@xXJSONDeruloXx
Copy link
Contributor Author

@FakeMichau done

@FakeMichau FakeMichau merged commit b8f6438 into optiscaler:master Jan 10, 2026
1 check passed
@FakeMichau
Copy link
Collaborator

Will need to be picked up by the v0.9 branch at some point

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