mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-18 14:55:38 +00:00
Prep RA remaps
This commit is contained in:
parent
614f4482e1
commit
95da78b8e2
|
@ -74,6 +74,7 @@ post_update() {
|
||||||
# - New ~/retrodeck/mods and ~/retrodeck/texture_packs directories are added and symlinked to multiple different emulators (where supported)
|
# - New ~/retrodeck/mods and ~/retrodeck/texture_packs directories are added and symlinked to multiple different emulators (where supported)
|
||||||
# - Expose ES-DE gamelists folder to user at ~/retrodeck/gamelists
|
# - Expose ES-DE gamelists folder to user at ~/retrodeck/gamelists
|
||||||
# - Copy new borders into RA config location
|
# - Copy new borders into RA config location
|
||||||
|
# - Copy new RetroArch control remaps into RA config location
|
||||||
# - Update RPCS3 vfs file contents. migrate from old location if needed
|
# - Update RPCS3 vfs file contents. migrate from old location if needed
|
||||||
# - Disable ESDE update checks for existing installs
|
# - Disable ESDE update checks for existing installs
|
||||||
# - Move Duckstation saves and states to new locations
|
# - Move Duckstation saves and states to new locations
|
||||||
|
@ -115,6 +116,8 @@ post_update() {
|
||||||
dir_prep "$borders_folder" "/var/config/retroarch/overlays/borders"
|
dir_prep "$borders_folder" "/var/config/retroarch/overlays/borders"
|
||||||
rsync -a "/app/retrodeck/emu-configs/retroarch/borders/" "/var/config/retroarch/overlays/borders"
|
rsync -a "/app/retrodeck/emu-configs/retroarch/borders/" "/var/config/retroarch/overlays/borders"
|
||||||
|
|
||||||
|
rsync -a --mkpath "$emuconfigs/defaults/retrodeck/presets/remaps/" "/var/config/retroarch/config/remaps/"
|
||||||
|
|
||||||
if [[ $(configurator_generic_question_dialog "RetroDECK Starter Pack" "The RetroDECK creators have put together a collection of classic retro games you might enjoy!\n\nWould you like to have them automatically added to your library?\n\nThis can always be done later through the Configurator.") == "true" ]]; then
|
if [[ $(configurator_generic_question_dialog "RetroDECK Starter Pack" "The RetroDECK creators have put together a collection of classic retro games you might enjoy!\n\nWould you like to have them automatically added to your library?\n\nThis can always be done later through the Configurator.") == "true" ]]; then
|
||||||
install_retrodeck_starterpack
|
install_retrodeck_starterpack
|
||||||
fi
|
fi
|
||||||
|
@ -196,7 +199,7 @@ post_update() {
|
||||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
--title "RetroDECK Finishing Upgrade" \
|
--title "RetroDECK Finishing Upgrade" \
|
||||||
--text="RetroDECK is finishing the upgrade process, please wait."
|
--text="RetroDECK is finishing the upgrade process, please wait."
|
||||||
|
|
||||||
version=$hard_version
|
version=$hard_version
|
||||||
conf_write
|
conf_write
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ prepare_emulator() {
|
||||||
# An emulator can be called by name, by parent folder name in the /var/config root or use the option "all" to perform the action on all emulators equally
|
# An emulator can be called by name, by parent folder name in the /var/config root or use the option "all" to perform the action on all emulators equally
|
||||||
# The function will also behave differently depending on if the initial request was from the Configurator, the CLI interface or a normal function call if needed
|
# The function will also behave differently depending on if the initial request was from the Configurator, the CLI interface or a normal function call if needed
|
||||||
# USAGE: prepare_emulator "$action" "$emulator" "$call_source(optional)"
|
# USAGE: prepare_emulator "$action" "$emulator" "$call_source(optional)"
|
||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
emulator="$2"
|
emulator="$2"
|
||||||
call_source="$3"
|
call_source="$3"
|
||||||
|
@ -77,6 +77,7 @@ prepare_emulator() {
|
||||||
cp -fv $emuconfigs/retroarch/retroarch.cfg /var/config/retroarch/
|
cp -fv $emuconfigs/retroarch/retroarch.cfg /var/config/retroarch/
|
||||||
cp -fv $emuconfigs/retroarch/retroarch-core-options.cfg /var/config/retroarch/
|
cp -fv $emuconfigs/retroarch/retroarch-core-options.cfg /var/config/retroarch/
|
||||||
rsync -a --mkpath "$emuconfigs/retroarch/core-overrides/" "/var/config/retroarch/config/"
|
rsync -a --mkpath "$emuconfigs/retroarch/core-overrides/" "/var/config/retroarch/config/"
|
||||||
|
rsync -a --mkpath "$emuconfigs/defaults/retrodeck/presets/remaps/" "/var/config/retroarch/config/remaps/"
|
||||||
dir_prep "$borders_folder" "/var/config/retroarch/overlays/borders"
|
dir_prep "$borders_folder" "/var/config/retroarch/overlays/borders"
|
||||||
rsync -a --mkpath "/app/retrodeck/emu-configs/retroarch/borders/" "/var/config/retroarch/overlays/borders/"
|
rsync -a --mkpath "/app/retrodeck/emu-configs/retroarch/borders/" "/var/config/retroarch/overlays/borders/"
|
||||||
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
||||||
|
@ -127,7 +128,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(cemu|Cemu|all)$ ]]; then
|
if [[ "$emulator" =~ ^(cemu|Cemu|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
@ -146,10 +147,10 @@ prepare_emulator() {
|
||||||
dir_prep "$rdhome/saves/wiiu/cemu" "$rdhome/bios/cemu/usr/save"
|
dir_prep "$rdhome/saves/wiiu/cemu" "$rdhome/bios/cemu/usr/save"
|
||||||
fi
|
fi
|
||||||
# if [[ "$action" == "postmove" ]]; then # Run only post-move commands
|
# if [[ "$action" == "postmove" ]]; then # Run only post-move commands
|
||||||
|
|
||||||
# fi
|
# fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(citra|citra-emu|Citra|all)$ ]]; then
|
if [[ "$emulator" =~ ^(citra|citra-emu|Citra|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
|
@ -192,7 +193,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$citraconf" "Paths\screenshotPath" "$screenshots_folder" "citra" "UI"
|
set_setting_value "$citraconf" "Paths\screenshotPath" "$screenshots_folder" "citra" "UI"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(dolphin|dolphin-emu|Dolphin|all)$ ]]; then
|
if [[ "$emulator" =~ ^(dolphin|dolphin-emu|Dolphin|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
@ -243,7 +244,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$dolphinconf" "WiiSDCardPath" "$saves_folder/wii/dolphin/sd.raw" "dolphin" "General"
|
set_setting_value "$dolphinconf" "WiiSDCardPath" "$saves_folder/wii/dolphin/sd.raw" "dolphin" "General"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(duckstation|Duckstation|all)$ ]]; then
|
if [[ "$emulator" =~ ^(duckstation|Duckstation|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
|
@ -278,7 +279,7 @@ prepare_emulator() {
|
||||||
dir_prep "$states_folder/psx/duckstation" "/var/data/duckstation/savestates" # This is hard-coded in Duckstation, always needed
|
dir_prep "$states_folder/psx/duckstation" "/var/data/duckstation/savestates" # This is hard-coded in Duckstation, always needed
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(melonds|melonDS|MelonDS|all)$ ]]; then
|
if [[ "$emulator" =~ ^(melonds|melonDS|MelonDS|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
@ -318,7 +319,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$melondsconf" "SavestatePath" "$states_folder/nds/melonds" "melonds"
|
set_setting_value "$melondsconf" "SavestatePath" "$states_folder/nds/melonds" "melonds"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(pcsx2|PCSX2|all)$ ]]; then
|
if [[ "$emulator" =~ ^(pcsx2|PCSX2|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
@ -364,7 +365,7 @@ prepare_emulator() {
|
||||||
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder
|
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(ppsspp|PPSSPP|all)$ ]]; then
|
if [[ "$emulator" =~ ^(ppsspp|PPSSPP|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
|
@ -392,7 +393,7 @@ prepare_emulator() {
|
||||||
dir_prep "$states_folder/PSP/PPSSPP-SA" "/var/config/ppsspp/PSP/PPSSPP_STATE"
|
dir_prep "$states_folder/PSP/PPSSPP-SA" "/var/config/ppsspp/PSP/PPSSPP_STATE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(primehack|Primehack|all)$ ]]; then
|
if [[ "$emulator" =~ ^(primehack|Primehack|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
@ -433,7 +434,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$primehackconf" "ISOPath0" "$roms_folder/gc" "primehack" "General"
|
set_setting_value "$primehackconf" "ISOPath0" "$roms_folder/gc" "primehack" "General"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(rpcs3|RPCS3|all)$ ]]; then
|
if [[ "$emulator" =~ ^(rpcs3|RPCS3|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
|
@ -471,7 +472,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$rpcs3vfsconf" "/games/" "$roms_folder/ps3" "rpcs3"
|
set_setting_value "$rpcs3vfsconf" "/games/" "$roms_folder/ps3" "rpcs3"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [[ "$emulator" =~ ^(ryujunx|Ryujinx|all)$ ]]; then
|
# if [[ "$emulator" =~ ^(ryujunx|Ryujinx|all)$ ]]; then
|
||||||
# if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
# if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
# echo "------------------------"
|
# echo "------------------------"
|
||||||
|
@ -498,7 +499,7 @@ prepare_emulator() {
|
||||||
# sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' "$ryujinxconf" # This is an unfortunate one-off because set_setting_value does not currently support JSON
|
# sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' "$ryujinxconf" # This is an unfortunate one-off because set_setting_value does not currently support JSON
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(xemu|XEMU|all)$ ]]; then
|
if [[ "$emulator" =~ ^(xemu|XEMU|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
if [[ $(check_network_connectivity) == "true" ]]; then
|
if [[ $(check_network_connectivity) == "true" ]]; then
|
||||||
|
@ -551,7 +552,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$xemuconf" "hdd_path" "'$bios_folder/xbox_hdd.qcow2'" "xemu" "sys.files"
|
set_setting_value "$xemuconf" "hdd_path" "'$bios_folder/xbox_hdd.qcow2'" "xemu" "sys.files"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$emulator" =~ ^(yuzu|Yuzu|all)$ ]]; then
|
if [[ "$emulator" =~ ^(yuzu|Yuzu|all)$ ]]; then
|
||||||
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
if [[ "$action" == "reset" ]]; then # Run reset-only commands
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
|
Loading…
Reference in a new issue