Update NonSteamLaunchers.sh

This commit is contained in:
Roy 2024-10-17 03:33:02 -07:00 committed by GitHub
parent c529e86384
commit 6dae54a948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2316,7 +2316,6 @@ if $DECKY_LOADER_EXISTS && $NSL_PLUGIN_EXISTS; then
switch_to_game_mode switch_to_game_mode
exit 0 exit 0
elif $DECKY_LOADER_EXISTS && ! $NSL_PLUGIN_EXISTS; then elif $DECKY_LOADER_EXISTS && ! $NSL_PLUGIN_EXISTS; then
show_message "Please enter your password for authentication..."
USER_INPUT=$(zenity --forms --title="Authentication Required" --text="Decky Loader detected! But no NSL plugin :( Would you like to inject the plugin and switch to Game Mode?" --separator="|" --add-password="Password") USER_INPUT=$(zenity --forms --title="Authentication Required" --text="Decky Loader detected! But no NSL plugin :( Would you like to inject the plugin and switch to Game Mode?" --separator="|" --add-password="Password")
else else
zenity --error --text="Decky Loader not detected. Please download and install it from their website first and re-run this script to get the NSL Plugin." zenity --error --text="Decky Loader not detected. Please download and install it from their website first and re-run this script to get the NSL Plugin."
@ -2347,10 +2346,7 @@ git clone "$REPO_URL" "$LOCAL_DIR"
cd "$LOCAL_DIR" cd "$LOCAL_DIR"
git checkout "$BRANCH_NAME" git checkout "$BRANCH_NAME"
echo "Restarting the plugin loader service..." show_message "Plugin installed. Switching to Game Mode..."
sudo systemctl restart plugin_loader.service
show_message "Plugin installed and loader restarted. Switching to Game Mode..."
# Switch to Game Mode after completion # Switch to Game Mode after completion
switch_to_game_mode switch_to_game_mode