mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
PORTMASTER: added the possibility to hide it from ES-DE
This commit is contained in:
parent
1427a0395a
commit
a192f54e2a
|
@ -37,6 +37,7 @@ font=1
|
||||||
cheevos_login=false
|
cheevos_login=false
|
||||||
logging_level=info
|
logging_level=info
|
||||||
portmaster_reload_esde=true
|
portmaster_reload_esde=true
|
||||||
|
portmaster_show=true
|
||||||
|
|
||||||
[cheevos]
|
[cheevos]
|
||||||
duckstation=false
|
duckstation=false
|
||||||
|
|
|
@ -953,6 +953,16 @@ start_retrodeck() {
|
||||||
get_steam_user # get steam user info
|
get_steam_user # get steam user info
|
||||||
splash_screen # Check if today has a surprise splashscreen and load it if so
|
splash_screen # Check if today has a surprise splashscreen and load it if so
|
||||||
ponzu
|
ponzu
|
||||||
|
|
||||||
|
log d "Checking if PortMaster should be shown"
|
||||||
|
if [[ $(get_setting_value "$rd_conf" "portmaster_show" "retrodeck" "options") == "false" ]]; then
|
||||||
|
log d "Assuring that PortMaster is hidden on ES-DE"
|
||||||
|
portmaster_show "false"
|
||||||
|
else
|
||||||
|
log d "Assuring that PortMaster is shown on ES-DE"
|
||||||
|
portmaster_show "true"
|
||||||
|
fi
|
||||||
|
|
||||||
log i "Starting RetroDECK v$version"
|
log i "Starting RetroDECK v$version"
|
||||||
es-de
|
es-de
|
||||||
}
|
}
|
||||||
|
@ -986,3 +996,17 @@ retroarch_updater(){
|
||||||
# Synchronize border overlays from the RetroDeck configuration directory to the RetroArch overlays directory
|
# Synchronize border overlays from the RetroDeck configuration directory to the RetroArch overlays directory
|
||||||
rsync -rlD --mkpath "/app/retrodeck/config/retroarch/borders/" "/var/config/retroarch/overlays/borders/" && log d "RetroArch overlays and borders updated correctly"
|
rsync -rlD --mkpath "/app/retrodeck/config/retroarch/borders/" "/var/config/retroarch/overlays/borders/" && log d "RetroArch overlays and borders updated correctly"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
portmaster_show(){
|
||||||
|
log d "Setting PortMaster visibility in ES-DE"
|
||||||
|
if [ "$1" = "true" ]; then
|
||||||
|
log d "\"$roms_folder/portmaster/PortMaster.sh\" is not found, installing it"
|
||||||
|
install -Dm755 "/var/data/PortMaster/PortMaster.sh" "$roms_folder/portmaster/PortMaster.sh" && log d "PortMaster is correctly showing in ES-DE"
|
||||||
|
set_setting_value $rd_conf "portmaster_show" "true" retrodeck "options"
|
||||||
|
elif [ "$1" = "false" ]; then
|
||||||
|
rm -rf "$roms_folder/portmaster/PortMaster.sh" && log d "PortMaster is correctly hidden in ES-DE"
|
||||||
|
set_setting_value $rd_conf "portmaster_show" "false" retrodeck "options"
|
||||||
|
else
|
||||||
|
log e "\"$1\" is not a valid choice, quitting"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>RETROARCH: Fixed a bug where the cores were not updated along with RetroArch itself</li>
|
<li>RETROARCH: Fixed a bug where the cores were not updated along with RetroArch itself</li>
|
||||||
<li>DOLPHIN and PRIMEHACK: Fixed a bug where the Universal Dynamic Input was missing from the build</li>
|
<li>DOLPHIN and PRIMEHACK: Fixed a bug where the Universal Dynamic Input was missing from the build</li>
|
||||||
|
<li>PORTMASTER: added the ability to hide PortMaster from ES-DE</li>
|
||||||
</ul>
|
</ul>
|
||||||
</description>
|
</description>
|
||||||
</release>
|
</release>
|
||||||
|
|
|
@ -67,6 +67,7 @@ source /app/libexec/global.sh
|
||||||
# - Install: PS3 firmware
|
# - Install: PS3 firmware
|
||||||
# - Install: PS Vita firmware
|
# - Install: PS Vita firmware
|
||||||
# - RetroDECK: Change Update Setting
|
# - RetroDECK: Change Update Setting
|
||||||
|
# - PortMaster: hide/show
|
||||||
# - Troubleshooting
|
# - Troubleshooting
|
||||||
# - Backup: RetroDECK Userdata
|
# - Backup: RetroDECK Userdata
|
||||||
# - Check & Verify: BIOS
|
# - Check & Verify: BIOS
|
||||||
|
@ -590,6 +591,7 @@ configurator_retrodeck_tools_dialog() {
|
||||||
"Install: PS3 Firmware" "Download and install PS3 firmware for use with the RPCS3 emulator"
|
"Install: PS3 Firmware" "Download and install PS3 firmware for use with the RPCS3 emulator"
|
||||||
"Install: PS Vita Firmware" "Download and install PS Vita firmware for use with the Vita3K emulator"
|
"Install: PS Vita Firmware" "Download and install PS Vita firmware for use with the Vita3K emulator"
|
||||||
"RetroDECK: Change Update Setting" "Enable or disable online checks for new versions of RetroDECK"
|
"RetroDECK: Change Update Setting" "Enable or disable online checks for new versions of RetroDECK"
|
||||||
|
"PortMaster: hide/show" "Hide or show PortMaster in ES-DE"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $(get_setting_value "$rd_conf" "kiroi_ponzu" "retrodeck" "options") == "true" ]]; then
|
if [[ $(get_setting_value "$rd_conf" "kiroi_ponzu" "retrodeck" "options") == "true" ]]; then
|
||||||
|
@ -712,13 +714,18 @@ configurator_retrodeck_tools_dialog() {
|
||||||
configurator_online_update_setting_dialog
|
configurator_online_update_setting_dialog
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Ponzu - Remove Yuzu" )
|
"PortMaster: hide/show" )
|
||||||
ponzu_remove "yuzu"
|
log i "Configurator: opening \"$choice\" menu"
|
||||||
;;
|
configurator_portmaster_toggle_dialog
|
||||||
|
;;
|
||||||
|
|
||||||
"Ponzu - Remove Citra" )
|
"Ponzu - Remove Yuzu" )
|
||||||
|
ponzu_remove "yuzu"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"Ponzu - Remove Citra" )
|
||||||
ponzu_remove "citra"
|
ponzu_remove "citra"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"" ) # No selection made or Back button clicked
|
"" ) # No selection made or Back button clicked
|
||||||
log i "Configurator: going back"
|
log i "Configurator: going back"
|
||||||
|
@ -980,6 +987,44 @@ configurator_online_update_setting_dialog() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurator_portmaster_toggle_dialog(){
|
||||||
|
|
||||||
|
if [[ $(get_setting_value "$rd_conf" "portmaster_show" "retrodeck" "options") == "true" ]]; then
|
||||||
|
rd_zenity --question \
|
||||||
|
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator - PortMaster Visibility" \
|
||||||
|
--text="PortMaster is currently <span foreground='$purple'><b>visible</b></span> in ES-DE. Do you want to hide it?\n\nPlease note that the installed games will still be visible."
|
||||||
|
|
||||||
|
if [ $? == 0 ] # User clicked "Yes"
|
||||||
|
then
|
||||||
|
portmaster_show "false"
|
||||||
|
rd_zenity --info \
|
||||||
|
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator - PortMaster Visibility" \
|
||||||
|
--text="PortMaster is now <span foreground='$purple'><b>hidden</b></span> in ES-DE.\nPlease refresh your game list or restart RetroDECK to see the changes.\n\nIn order to launch PortMaster, you can access it from:\n<span foreground='$purple'><b>Configurator -> Open Emulator or Component -> PortMaster</b></span>."
|
||||||
|
else # User clicked "Cancel"
|
||||||
|
configurator_retrodeck_tools_dialog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
rd_zenity --question \
|
||||||
|
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator - PortMaster Visibility" \
|
||||||
|
--text="PortMaster is currently <span foreground='$purple'><b>hidden</b></span> in ES-DE. Do you want to show it?"
|
||||||
|
|
||||||
|
if [ $? == 0 ] # User clicked "Yes"
|
||||||
|
then
|
||||||
|
portmaster_show "true"
|
||||||
|
rd_zenity --info \
|
||||||
|
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator - PortMaster Visibility" \
|
||||||
|
--text="PortMaster is now <span foreground='$purple'><b>visible</b></span> in ES-DE.\nPlease refresh your game list or restart RetroDECK to see the changes."
|
||||||
|
else # User clicked "Cancel"
|
||||||
|
configurator_retrodeck_tools_dialog
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
configurator_retrodeck_tools_dialog
|
||||||
|
}
|
||||||
|
|
||||||
configurator_retrodeck_troubleshooting_dialog() {
|
configurator_retrodeck_troubleshooting_dialog() {
|
||||||
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - RetroDECK: Troubleshooting" --cancel-label="Back" \
|
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - RetroDECK: Troubleshooting" --cancel-label="Back" \
|
||||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --width=1200 --height=720 \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --width=1200 --height=720 \
|
||||||
|
|
Loading…
Reference in a new issue