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

Global Command Support #2

Merged
merged 3 commits into from
Apr 9, 2023
Merged

Global Command Support #2

merged 3 commits into from
Apr 9, 2023

Conversation

Nonary
Copy link
Owner

@Nonary Nonary commented Apr 9, 2023

Refactors the entire script to utilize Sunshines global prep commands feature.
This offers more flexibility in being able to start before the stream and also end immediately after the stream ends.

Nonary added 3 commits April 7, 2023 22:08
…nf file

This commit adds a PowerShell script that modifies the global_prep_cmd setting in the sunshine.conf configuration file to add a command that runs MonitorSwap-Dummy.ps1.

The script contains functions for getting the current value of global_prep_cmd from the configuration file, removing any existing commands that contain MonitorSwap-Dummy from the global_prep_cmd value, setting a new value for global_prep_cmd in the configuration file, and adding a new command to run MonitorSwap-Dummy.ps1 to the global_prep_cmd value.

The script also includes logic to check if the current user has administrator privileges, and if not, re-launches the script with elevated privileges
@Nonary Nonary merged commit 34ab101 into master Apr 9, 2023
@Nonary Nonary deleted the precommand_version branch April 9, 2023 05:10
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