From 96c0abcfec33a55d8c5c734b4b4b4f60a07259d1 Mon Sep 17 00:00:00 2001 From: Lx32 Date: Thu, 28 Sep 2023 15:29:33 +0200 Subject: [PATCH] Update configurator.sh Updated the configurator with the add to steam function --- tools/configurator.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/configurator.sh b/tools/configurator.sh index 175a7174..3038f9b6 100644 --- a/tools/configurator.sh +++ b/tools/configurator.sh @@ -83,6 +83,7 @@ source /app/libexec/global.sh # - Full changelog # - Version-specific changelogs # - RetroDECK Credits +# - Add to Steam # - Developer Options (Hidden) # - Change Multi-user mode # - Change Update channel @@ -99,13 +100,15 @@ configurator_welcome_dialog() { "RetroDECK: Tools" "Compress games, move RetroDECK and install optional features" \ "RetroDECK: Troubleshooting" "Backup data, perform BIOS / multi-disc file checks checks and emulator resets" \ "RetroDECK: About" "Show additional information about RetroDECK" \ + "Add to Steam" "Add to Steam all the favorite games, it will not remove added games" \ "Developer Options" "Welcome to the DANGER ZONE") else welcome_menu_options=("Presets & Settings" "Here you find various presets, tweaks and settings to customize your RetroDECK experience" \ "Open Emulator" "Launch and configure each emulators settings (for advanced users)" \ "RetroDECK: Tools" "Compress games, move RetroDECK and install optional features" \ "RetroDECK: Troubleshooting" "Backup data, perform BIOS / multi-disc file checks checks and emulator resets" \ - "RetroDECK: About" "Show additional information about RetroDECK" ) + "RetroDECK: About" "Show additional information about RetroDECK" \ + "Add to Steam" "Add to Steam all the favorite games, it will not remove added games") fi choice=$(zenity --list --title="RetroDECK Configurator Utility" --cancel-label="Quit" \ @@ -135,6 +138,10 @@ configurator_welcome_dialog() { configurator_about_retrodeck_dialog ;; + "Add to Steam" ) + configurator_add_steam + ;; + "Developer Options" ) configurator_generic_dialog "RetroDECK Configurator - Developer Options" "The following features and options are potentially VERY DANGEROUS for your RetroDECK install!\n\nThey should be considered the bleeding-edge of upcoming RetroDECK features, and never used when you have important saves/states/roms that are not backed up!\n\nYOU HAVE BEEN WARNED!" configurator_developer_dialog @@ -1075,6 +1082,11 @@ configurator_about_retrodeck_dialog() { esac } +configurator_add_steam() { + python3 /app/tools/Lutris/shortcut.py + configurator_welcome_dialog +} + configurator_version_history_dialog() { local version_array=($(xml sel -t -v '//component/releases/release/@version' -n $rd_appdata)) local all_versions_list=()