Add finit choices dialog and stage binding icons
29
functions.sh
|
@ -1850,10 +1850,10 @@ finit() {
|
|||
echo "Executing finit"
|
||||
|
||||
# Internal or SD Card?
|
||||
choice=$(configurator_destination_choice_dialog "RetroDECK data" "Welcome to the first configuration of RetroDECK.\nThe setup will be quick but please READ CAREFULLY each message in order to avoid misconfigurations.\n\nWhere do you want your RetroDECK data folder to be located?\n\nThis folder will contain all ROMs, BIOSs and scraped data." )
|
||||
echo "Choice is $choice"
|
||||
local finit_dest_choice=$(configurator_destination_choice_dialog "RetroDECK data" "Welcome to the first configuration of RetroDECK.\nThe setup will be quick but please READ CAREFULLY each message in order to avoid misconfigurations.\n\nWhere do you want your RetroDECK data folder to be located?\n\nThis folder will contain all ROMs, BIOSs and scraped data." )
|
||||
echo "Choice is $finit_dest_choice"
|
||||
|
||||
case $choice in
|
||||
case $finit_dest_choice in
|
||||
|
||||
"" ) # Cancel or X button quits
|
||||
echo "Now quitting"
|
||||
|
@ -1916,7 +1916,20 @@ finit() {
|
|||
|
||||
conf_write # Write the new values to retrodeck.cfg
|
||||
|
||||
local rpcs_firmware_install=$(configurator_generic_question_dialog "RPCS3 Firmware Install" "Would you like to install the latest PS3 firmware for the RPCS3 emulator?\n\nThis process will take several minutes and requires network access.\nIf you do not plan to emulate PS3 games this can be skipped, and can always be done later through the Configurator.\n\nIf you click Yes, RPCS3 will be launched at the end of the RetroDECK setup process.\nOnce the firmware is installed, please close the emulator to finish the process.")
|
||||
local finit_options_choices=$(zenity \
|
||||
--list --width=1200 --height=720 \
|
||||
--checklist --hide-column=4 --ok-label="Confirm Selections" --extra-button="Enable All" \
|
||||
--separator=" " --print-column=4 \
|
||||
--text="Choose which options to enable:" \
|
||||
--column "Enabled?" \
|
||||
--column "Option" \
|
||||
--column "Description" \
|
||||
--column "option_flag" \
|
||||
"${finit_options_list[@]}")
|
||||
|
||||
if [[ "$finit_options_choices" =~ (rpcs3_firmware|Enable All) ]]; then # Additional information on the firmware install process, as the emulator needs to be manually closed
|
||||
configurator_generic_dialog "RPCS3 Firmware Install" "You have chosen to install the RPCS3 firmware during the RetroDECK first setup.\n\nThis process will take several minutes and requires network access.\n\nRPCS3 will be launched automatically at the end of the RetroDECK setup process.\nOnce the firmware is installed, please close the emulator to finish the process.")
|
||||
fi
|
||||
|
||||
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" \
|
||||
|
@ -1926,12 +1939,18 @@ finit() {
|
|||
prepare_emulator "reset" "all"
|
||||
tools_init
|
||||
|
||||
if [[ $rpcs_firmware_install == "true" ]]; then
|
||||
# Optional actions based on user choices
|
||||
if [[ "$finit_options_choices" =~ (rpcs3_firmware|Enable All) ]]; then
|
||||
update_rpcs3_firmware
|
||||
fi
|
||||
if [[ "$finit_options_choices" =~ (rd_controller_profile|Enable All) ]]; then
|
||||
rsync -a "/app/retrodeck/binding-icons/" "$HOME/.steam/steam/tenfoot/resource/images/library/controller/binding_icons/"
|
||||
# TODO move controller profile file to where it needs to go
|
||||
fi
|
||||
|
||||
# Add packaged extras, after the ROMS folder has been initialized
|
||||
cp /app/retrodeck/extras/doom1.wad "$roms_folder/doom/doom1.wad" # No -f in case the user already has it
|
||||
|
||||
) |
|
||||
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
|
|
|
@ -32,6 +32,12 @@ helper_files_folder="$emuconfigs/defaults/retrodeck/helper_files"
|
|||
helper_files_list="$emuconfigs/defaults/retrodeck/reference_lists/helper_files_list.cfg" # The list of files to be deployed and where they go
|
||||
rpcs3_firmware="http://dus01.ps3.update.playstation.net/update/ps3/image/us/2023_0228_05fe32f5dc8c78acbcd84d36ee7fdc5b/PS3UPDAT.PUP"
|
||||
|
||||
# Options list for users to pick from during finit
|
||||
# Syntax is "enabled_by_default" "Option name" "Option description" "option_flag_to_be_checked_for"
|
||||
|
||||
finit_options_list=("false" "RPCS3 Firmware Install" "Install firmware needed for PS3 emulation during first install" "rpcs3_firmware" \
|
||||
"false" "RetroDECK Controller Profile" "Install custom RetroDECK controller profile (stored in shared Steam directory)" "rd_controller_profile")
|
||||
|
||||
# Config files for emulators with single config files
|
||||
|
||||
cemuconf="/var/config/Cemu/settings.xml"
|
||||
|
|
|
@ -1074,6 +1074,7 @@ modules:
|
|||
- cp -f res/splash.svg ${FLATPAK_DEST}/retrodeck/graphics/splash-orig.svg
|
||||
- cp -rf res/extra-splashes/ ${FLATPAK_DEST}/retrodeck/graphics
|
||||
- cp -f res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg
|
||||
- mv -f -t ${FLATPAK_DEST}/retrodeck res/binding-icons
|
||||
|
||||
# RetroDECK core script
|
||||
- cp retrodeck.sh /app/bin/retrodeck.sh
|
||||
|
|
BIN
res/binding-icons/RD-applets-screenshooter.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
res/binding-icons/RD-application-x-iso.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
res/binding-icons/RD-battery-full-charging.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
res/binding-icons/RD-battery-missing.png
Normal file
After Width: | Height: | Size: 460 B |
BIN
res/binding-icons/RD-camera-photo.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
res/binding-icons/RD-distributor-logo-netbsd.png
Normal file
After Width: | Height: | Size: 413 B |
BIN
res/binding-icons/RD-document-save.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
res/binding-icons/RD-edit-find.png
Normal file
After Width: | Height: | Size: 364 B |
BIN
res/binding-icons/RD-edit-undo.png
Normal file
After Width: | Height: | Size: 390 B |
BIN
res/binding-icons/RD-emblem-documents.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
res/binding-icons/RD-emblem-downloads.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
res/binding-icons/RD-emblem-encrypted-locked.png
Normal file
After Width: | Height: | Size: 271 B |
BIN
res/binding-icons/RD-emblem-favorite.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
res/binding-icons/RD-emblem-generic.png
Normal file
After Width: | Height: | Size: 309 B |
BIN
res/binding-icons/RD-emblem-new.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
res/binding-icons/RD-emblem-synchronizing.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
res/binding-icons/RD-emblem-unlocked.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
res/binding-icons/RD-emblem-unreadable.png
Normal file
After Width: | Height: | Size: 293 B |
BIN
res/binding-icons/RD-folder-applications.png
Normal file
After Width: | Height: | Size: 428 B |
BIN
res/binding-icons/RD-folder-blue-backup.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
res/binding-icons/RD-folder-blue-games.png
Normal file
After Width: | Height: | Size: 427 B |
BIN
res/binding-icons/RD-go-next.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
res/binding-icons/RD-go-previous.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
res/binding-icons/RD-godot.png
Normal file
After Width: | Height: | Size: 524 B |
BIN
res/binding-icons/RD-icon_circle_2_180x180.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
res/binding-icons/RD-io.github.antimicrox.antimicrox.png
Normal file
After Width: | Height: | Size: 439 B |
BIN
res/binding-icons/RD-list-add.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
res/binding-icons/RD-list-remove.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
res/binding-icons/RD-media-playback-pause.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
res/binding-icons/RD-media-playback-start.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
res/binding-icons/RD-notification-network-ethernet-connected.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
res/binding-icons/RD-notification-network-wireless.png
Normal file
After Width: | Height: | Size: 415 B |
BIN
res/binding-icons/RD-octopi.png
Normal file
After Width: | Height: | Size: 459 B |
BIN
res/binding-icons/RD-org.xfce.session.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
res/binding-icons/RD-pcsxr-icon.png
Normal file
After Width: | Height: | Size: 387 B |
BIN
res/binding-icons/RD-playonlinux.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
res/binding-icons/RD-preferences-desktop-accessibility.png
Normal file
After Width: | Height: | Size: 570 B |
BIN
res/binding-icons/RD-preferences-desktop-display.png
Normal file
After Width: | Height: | Size: 344 B |
BIN
res/binding-icons/RD-preferences-desktop-emoticons.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
res/binding-icons/RD-preferences-desktop-icons.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
res/binding-icons/RD-preferences-desktop-keyboard.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
res/binding-icons/RD-preferences-system-search.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
res/binding-icons/RD-preferences-system-windows-actions.png
Normal file
After Width: | Height: | Size: 437 B |
BIN
res/binding-icons/RD-preferences-tweaks-shadows.png
Normal file
After Width: | Height: | Size: 485 B |
BIN
res/binding-icons/RD-process-stop.png
Normal file
After Width: | Height: | Size: 402 B |
BIN
res/binding-icons/RD-pvz.png
Normal file
After Width: | Height: | Size: 568 B |
BIN
res/binding-icons/RD-retroarch.png
Normal file
After Width: | Height: | Size: 468 B |
BIN
res/binding-icons/RD-security-low.png
Normal file
After Width: | Height: | Size: 909 B |
BIN
res/binding-icons/RD-steam.png
Normal file
After Width: | Height: | Size: 515 B |
BIN
res/binding-icons/RD-supertuxkart.png
Normal file
After Width: | Height: | Size: 613 B |
BIN
res/binding-icons/RD-system-reboot.png
Normal file
After Width: | Height: | Size: 504 B |
BIN
res/binding-icons/RD-system-switch-user.png
Normal file
After Width: | Height: | Size: 459 B |
BIN
res/binding-icons/RD-tesseract.png
Normal file
After Width: | Height: | Size: 711 B |
BIN
res/binding-icons/RD-text-x-generic.png
Normal file
After Width: | Height: | Size: 414 B |
BIN
res/binding-icons/RD-tools-check-spelling.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
res/binding-icons/RD-urbanterror.png
Normal file
After Width: | Height: | Size: 462 B |
BIN
res/binding-icons/RD-user-red-home.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
res/binding-icons/RD-utilities-terminal.png
Normal file
After Width: | Height: | Size: 436 B |
BIN
res/binding-icons/RD-video-x-generic.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
res/binding-icons/RD-view-refresh.png
Normal file
After Width: | Height: | Size: 402 B |
BIN
res/binding-icons/RD-zoom-fit-best.png
Normal file
After Width: | Height: | Size: 413 B |
BIN
res/binding-icons/RD-zoom-in.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
res/binding-icons/RD-zoom-original.png
Normal file
After Width: | Height: | Size: 417 B |
BIN
res/binding-icons/RD-zoom-out.png
Normal file
After Width: | Height: | Size: 371 B |