Bugfixes by RavenKilit

This commit is contained in:
XargonWan 2022-09-24 20:28:49 +02:00 committed by GitHub
parent e1c61e95e5
commit a9b1888b2e
3 changed files with 66 additions and 64 deletions

View file

@ -79,6 +79,9 @@ then
echo "themes_folder=$themes_folder" >> $rd_conf echo "themes_folder=$themes_folder" >> $rd_conf
echo "sdcard=$sdcard" >> $rd_conf echo "sdcard=$sdcard" >> $rd_conf
echo "Setting config file permissions"
chmod +rwx $rd_conf
# If the config file is existing i just read the variables (source it) # If the config file is existing i just read the variables (source it)
else else
echo "Found RetroDECK config file in $rd_conf" echo "Found RetroDECK config file in $rd_conf"

View file

@ -1386,20 +1386,23 @@ modules:
buildsystem: simple buildsystem: simple
build-commands: build-commands:
# Prep the ES-DE and RetroArch config files - I will have to SED/XMLSTARLET them soon # Initializing retrodeck config folder
- mkdir -p /var/config/retrodeck
# Prep the ES-DE and RetroArch config files - I will have to SED/XMLSTARLET them soon
- rm -rf /app/share/emulationstation/resources/systems/unix/es_find_rules.xml - rm -rf /app/share/emulationstation/resources/systems/unix/es_find_rules.xml
- cp es-configs/es_find_rules.xml /app/share/emulationstation/resources/systems/unix/ - cp es-configs/es_find_rules.xml /app/share/emulationstation/resources/systems/unix/
- rm -rf /app/share/emulationstation/resources/systems/unix/es_systems.xml - rm -rf /app/share/emulationstation/resources/systems/unix/es_systems.xml
- cp es-configs/es_systems.xml /app/share/emulationstation/resources/systems/unix/ - cp es-configs/es_systems.xml /app/share/emulationstation/resources/systems/unix/
# These must be put in home folder, managed by retrodeck.sh # These must be put in home folder, managed by retrodeck.sh
- cp es-configs/es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml - cp es-configs/es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml
# Logo, res # Logo, res
- rm -f /app/share/emulationstation/resources/graphics/splash.svg - rm -f /app/share/emulationstation/resources/graphics/splash.svg
- cp res/splash.svg /app/share/emulationstation/resources/graphics/splash.svg - cp res/splash.svg /app/share/emulationstation/resources/graphics/splash.svg
- cp res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg - cp res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg
# Tools # Tools
- mkdir -p ${FLATPAK_DEST}/retrodeck/tools/ - mkdir -p ${FLATPAK_DEST}/retrodeck/tools/
- cp tools/* ${FLATPAK_DEST}/retrodeck/tools/ - cp tools/* ${FLATPAK_DEST}/retrodeck/tools/
- mv -f es-configs/tools-gamelist.xml ${FLATPAK_DEST}/retrodeck/ - mv -f es-configs/tools-gamelist.xml ${FLATPAK_DEST}/retrodeck/
@ -1410,18 +1413,18 @@ modules:
- cp global.sh /app/bin/global.sh - cp global.sh /app/bin/global.sh
- chmod +x /app/bin/global.sh - chmod +x /app/bin/global.sh
# Desktop entry # Desktop entry
- cp net.retrodeck.retrodeck.desktop /app/share/applications/net.retrodeck.retrodeck.desktop - cp net.retrodeck.retrodeck.desktop /app/share/applications/net.retrodeck.retrodeck.desktop
# TODO: group the configs per-emu and optimize the following cps, like already done with Dolphin. Please not that some files may be renamed, check retrodeck.sh to know how (and fix it after the edit) # TODO: group the configs per-emu and optimize the following cps, like already done with Dolphin. Please not that some files may be renamed, check retrodeck.sh to know how (and fix it after the edit)
# Initializing default emulator configs # Initializing default emulator configs
- cp -r emu-configs ${FLATPAK_DEST}/retrodeck/emu-configs/ - cp -r emu-configs ${FLATPAK_DEST}/retrodeck/emu-configs/
# Overlays # Overlays
#- cp -r overlays ${FLATPAK_DEST}/retrodeck/overlays Disabled in 0.4.2b as it will be introduced in 0.5.0b #- cp -r overlays ${FLATPAK_DEST}/retrodeck/overlays Disabled in 0.4.2b as it will be introduced in 0.5.0b
# Placing appdata # Placing appdata
- mkdir -p ${FLATPAK_DEST}/share/appdata - mkdir -p ${FLATPAK_DEST}/share/appdata
- cp net.retrodeck.retrodeck.appdata.xml ${FLATPAK_DEST}/share/appdata - cp net.retrodeck.retrodeck.appdata.xml ${FLATPAK_DEST}/share/appdata

View file

@ -169,7 +169,7 @@ standalones_init() {
cp -fv $emuconfigs/ppssppsdl/* /var/config/ppsspp/PSP/SYSTEM/ cp -fv $emuconfigs/ppssppsdl/* /var/config/ppsspp/PSP/SYSTEM/
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/ppsspp/PSP/SYSTEM/ppsspp.ini sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/ppsspp/PSP/SYSTEM/ppsspp.ini
# PPSSPPSDL # DUCKSTATION
echo "------------------------" echo "------------------------"
echo "Initializing DUCKSTATION" echo "Initializing DUCKSTATION"
echo "------------------------" echo "------------------------"
@ -299,40 +299,40 @@ browse(){
done done
} }
advanced(){ #advanced(){
# function to give advanced install options # # function to give advanced install options
echo "Advaced choosed" # echo "Advaced choosed"
#
choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \ # choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" \ # --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" \
--ok-label "ROMs" \ # --ok-label "ROMs" \
--extra-button "Media" \ # --extra-button "Media" \
--extra-button "Themes" \ # --extra-button "Themes" \
--extra-button "Back" \ # --extra-button "Back" \
--text="What do you want to change?\n\nROMS folder = $roms_folder\nMedia folder (scraped data) = $media_folder\nThemes folder=$themes_folder" ) # --text="What do you want to change?\n\nROMS folder = $roms_folder\nMedia folder (scraped data) = $media_folder\nThemes folder=$themes_folder" )
echo "Choice is $choice" # echo "Choice is $choice"
#
case $choice in # case $choice in
#
"" ) # Internal (yes) # "" ) # Internal (yes)
echo "ROMs" # echo "ROMs"
;; # ;;
#
"Media" ) # "Media" )
echo "Media" # echo "Media"
;; # ;;
#
"Themes" ) # "Themes" )
echo "Themes" # echo "Themes"
;; # ;;
#
"Back" ) # Browse + not found fallback # "Back" ) # Browse + not found fallback
echo "Back" # echo "Back"
finit # finit
;; # ;;
#
esac # esac
} #}
finit() { finit() {
# Force/First init, depending on the situation # Force/First init, depending on the situation
@ -342,24 +342,24 @@ finit() {
# Internal or SD Card? # Internal or SD Card?
choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \ choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" \
--ok-label "Internal" \ --ok-label "Cancel" \
--extra-button "Internal" \
--extra-button "SD Card" \ --extra-button "SD Card" \
--extra-button "Advanced" \ #--extra-button "Advanced" \
--extra-button "Cancel" \
--text="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 roms folder to be located?" ) --text="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 roms folder to be located?" )
echo "Choice is $choice" echo "Choice is $choice"
case $choice in case $choice in
"" ) # Internal (yes) "" ) # Cancel or X button quits
echo "Internal selected"
roms_folder="$rdhome/roms"
;;
"Cancel" )
echo "Now quitting" echo "Now quitting"
kill $$ kill $$
;; ;;
"Internal" ) # Internal
echo "Internal selected"
roms_folder="$rdhome/roms"
;;
"SD Card" ) "SD Card" )
echo "SD Card selected" echo "SD Card selected"
@ -376,16 +376,12 @@ finit() {
roms_folder="$sdcard/retrodeck/roms" # sdcard variable is correct as its given by browse function roms_folder="$sdcard/retrodeck/roms" # sdcard variable is correct as its given by browse function
echo "ROMs folder = $roms_folder" echo "ROMs folder = $roms_folder"
fi fi
;; ;;
"Advanced" ) # Browse + not found fallback #"Advanced" ) # Browse + not found fallback
echo "Advanced" # echo "Advanced"
advanced # advanced
;; #;;
1 ) # X button quits
kill $$
;;
esac esac