RYUJINX: symlinked the config file until the situation is back to normal

This commit is contained in:
XargonWan 2024-07-12 20:47:05 +09:00
parent e47c9503fe
commit f5867e20cb
2 changed files with 9 additions and 1 deletions

View file

@ -345,6 +345,8 @@ post_update() {
mv -f "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
mv -f "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
mv -f "$rdhome/gamelists/"* "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed" && rm -rf "$rdhome/gamelists"
log i "Since in this version we moved to a PR build of Ryujinx we need to symlink it."
ln -sv $ryujinxconf "$(dirname $ryujinxconf)/PRConfig.json"
fi
# if [[ $(check_version_is_older_than "0.9.0b") == "true" ]]; then
@ -360,7 +362,10 @@ post_update() {
# log AND ZENITY "Found Cemu keys.txt" in "/var/data/Cemu/keys.txt", for a better compatibility is better to move it into "$bios_folder/cemu/mlc/keys.txt, do you want to continue?
# if yes: mv "/var/data/Cemu/keys.txt" "$bios_folder/cemu/mlc/keys.txt"
# ln -s "$bios_folder/cemu/mlc/keys.txt" "/var/data/Cemu/keys.txt" <--- AND THIS SHOULD BE EVEN PUT IN THE PREPARATION SCRIPT
# fi
# fi
# TODO: is this true?
# log i "Since in this version we restored Ryujinx to a main buikd we don't need the symlink anymore."
# rm "$(dirname $ryujinxconf)/PRConfig.json"
# fi
# The following commands are run every time.

View file

@ -628,6 +628,9 @@ prepare_component() {
dir_prep "$saves_folder/switch/ryujinx/sdcard" "/var/config/Ryujinx/sdcard"
dir_prep "$bios_folder/switch/firmware" "/var/config/Ryujinx/bis/system/Contents/registered"
dir_prep "$bios_folder/switch/keys" "/var/config/Ryujinx/system"
# TODO: delete these two lines after Ryujinx is back to a proper build
log i "Since in this version we moved to a PR build of Ryujinx we need to symlink it." # TODO: deleteme later
ln -sv $ryujinxconf "$(dirname $ryujinxconf)/PRConfig.json" # TODO: deleteme later
fi
fi
# if [[ "$action" == "reset" ]] || [[ "$action" == "postmove" ]]; then # Run commands that apply to both resets and moves