Merge branch 'cooker-0.6.0b' of https://github.com/XargonWan/RetroDECK into cooker-0.6.0b

This commit is contained in:
XargonWan 2022-12-12 09:10:43 +00:00
commit 6aab1096db
2 changed files with 19 additions and 9 deletions

View file

@ -661,7 +661,7 @@ ryujinx_init() {
mkdir -p /var/config/Ryujinx/system
cp -fv $emuconfigs/ryujinx/* /var/config/Ryujinx
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/Ryujinx/Config.json
ln -s $rdhome/bios/switch/keys /var/config/Ryujinx/system
dir_prep "$rdhome/bios/switch/keys" "/var/config/Ryujinx/system"
}
standalones_init() {
@ -737,6 +737,10 @@ emulators_post_move() {
# Duckstation section
sed -i 's#/home/deck/retrodeck/bios#'$rdhome/bios'#g' /var/config/duckstation/settings.ini
# Ryujinx section
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/config/Ryujinx/Config.json
dir_prep "$rdhome/bios/switch/keys" "/var/config/Ryujinx/system"
}
#=========================
@ -862,8 +866,8 @@ start_retrodeck() {
emulationstation --home /var/config/emulationstation
}
old_browse() {
# Function for browsing the sd card
finit_browse() {
# Function for choosing data directory location during first/forced init
path_selected=false
while [ $path_selected == false ]
do
@ -938,7 +942,7 @@ finit() {
--title "RetroDECK" \
--ok-label "Browse" \
--text="SD Card was not find in the default location.\nPlease choose the SD Card root.\nA retrodeck folder will be created starting from the directory that you selected."
rdhome=$(old_browse) # Calling the browse function
rdhome=$(finit_browse) # Calling the browse function
if [[ -z $rdhome ]]; then # If user hit the cancel button
exit 2
fi
@ -976,7 +980,7 @@ finit() {
--title "RetroDECK" \
--ok-label "Browse" \
--text="Please choose the root folder for the RetroDECK data.\nA retrodeck folder will be created starting from the directory that you selected."
rdhome=$(old_browse) # Calling the browse function
rdhome=$(finit_browse) # Calling the browse function
if [[ -z $rdhome ]]; then # If user hit the cancel button
exit 2
fi

View file

@ -29,6 +29,7 @@ source /app/libexec/functions.sh # uncomment for flatpak testing
# - Reset MelonDS
# - Reset Citra
# - Reset RPCS3
# - Reset Ryujinx
# - Reset XEMU
# - Reset PPSSPP
# - Reset Duckstation
@ -113,13 +114,13 @@ configurator_reset_dialog() {
configurator_process_complete_dialog "resetting $emulator_to_reset"
;;
"Ryujinx" )
ryujinx_init
"RPCS3" )
rpcs3_init
configurator_process_complete_dialog "resetting $emulator_to_reset"
;;
"RPCS3" )
rpcs3_init
"Ryujinx" )
ryujinx_init
configurator_process_complete_dialog "resetting $emulator_to_reset"
;;
@ -216,6 +217,7 @@ configurator_power_user_changes_dialog() {
"PCSX2-Legacy" \
"PPSSPP" \
"RPCS3" \
"Ryujinx" \
"XEMU" \
"Yuzu")
@ -257,6 +259,10 @@ configurator_power_user_changes_dialog() {
rpcs3
;;
"Ryujinx" )
ryujinx-wrapper
;;
"XEMU" )
xemu
;;