mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Vita3K: created a basic script to init or reset the emu
This commit is contained in:
parent
a2c4929373
commit
cd5bc07a8b
|
@ -667,6 +667,25 @@ prepare_emulator() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$emulator" =~ ^(vita3k|Vita3K|all)$ ]]; then
|
||||||
|
# TODO: do a proper script
|
||||||
|
# This is just a placeholder script to test the emulator's flow
|
||||||
|
echo "----------------------"
|
||||||
|
echo "Initializing Vita3K"
|
||||||
|
echo "----------------------"
|
||||||
|
|
||||||
|
# copying config file
|
||||||
|
rm -rf /var/config/Vita3K
|
||||||
|
mkdir -pv /var/config/Vita3K
|
||||||
|
cp -fvr "$emuconfigs/vita3k/config.yml" /var/config/Vita3K
|
||||||
|
|
||||||
|
# copying vita user config
|
||||||
|
cp -fvr "$emuconfigs/ux0/"** "$bios_folder/Vita3K/Vita3K"
|
||||||
|
|
||||||
|
# prep saves folder
|
||||||
|
dir_prep "$saves_folder/psvita/vita3k" "$bios_folder/Vita3K/Vita3K/ux0/user/00/savedata"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update presets for all emulators after any reset or move
|
# Update presets for all emulators after any reset or move
|
||||||
if [[ ! "$emulator" == "retrodeck" ]]; then
|
if [[ ! "$emulator" == "retrodeck" ]]; then
|
||||||
build_retrodeck_current_presets
|
build_retrodeck_current_presets
|
||||||
|
|
Loading…
Reference in a new issue