Cooker 0.6.1b fixes

Merge pull request #227 from icenine451/cooker-0.6.1b-icenine451
This commit is contained in:
XargonWan 2023-01-02 14:29:23 +01:00 committed by GitHub
commit a2e727fb9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 12 deletions

View file

@ -565,6 +565,22 @@ dolphin_init() {
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii" dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii"
} }
primehack_init() {
echo "----------------------"
echo "Initializing Primehack"
echo "----------------------"
mkdir -pv /var/config/primehack/
cp -fvr "$emuconfigs/primehack/"* /var/config/primehack/
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/primehack/Dolphin.ini
dir_prep "$rdhome/saves/gc/primehack/EUR" "/var/data/primehack/GC/EUR"
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
dir_prep "$rdhome/states" "/var/data/primehack/StateSaves"
mkdir -pv /var/data/primehack/Wii/
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii"
}
pcsx2_init() { pcsx2_init() {
echo "----------------------" echo "----------------------"
echo "Initializing PCSX2" echo "Initializing PCSX2"
@ -670,17 +686,17 @@ standalones_init() {
echo "------------------------------------" echo "------------------------------------"
echo "Initializing standalone emulators" echo "Initializing standalone emulators"
echo "------------------------------------" echo "------------------------------------"
yuzu_init
citra_init citra_init
dolphin_init dolphin_init
duckstation_init
melonds_init melonds_init
pcsx2_init pcsx2_init
ppssppsdl_init ppssppsdl_init
primehack_init
rpcs3_init rpcs3_init
xemu_init
duckstation_init
ryujinx_init ryujinx_init
xemu_init
yuzu_init
} }
emulators_post_move() { emulators_post_move() {
@ -713,6 +729,15 @@ emulators_post_move() {
dir_prep "$rdhome/states" "/var/data/dolphin-emu/StateSaves" dir_prep "$rdhome/states" "/var/data/dolphin-emu/StateSaves"
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii/" dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii/"
# Primehack section
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/primehack/Dolphin.ini
dir_prep "$rdhome/saves/gc/primehack/EUR" "/var/data/primehack/GC/EUR"
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
dir_prep "$rdhome/states" "/var/data/primehack/StateSaves"
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii/"
# PCSX2 section # PCSX2 section
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2_ui.ini
sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini sed -i 's#~/retrodeck#'$rdhome'#g' /var/config/PCSX2/inis/PCSX2.ini

View file

@ -23,16 +23,17 @@ source /app/libexec/functions.sh # uncomment for flatpak testing
# - Reset RetroDECK # - Reset RetroDECK
# - Reset RetroArch # - Reset RetroArch
# - Reset Specific Standalone Emulator # - Reset Specific Standalone Emulator
# - Reset Yuzu
# - Reset Dolphin
# - Reset PCSX2
# - Reset MelonDS
# - Reset Citra # - Reset Citra
# - Reset Dolphin
# - Reset Duckstation
# - Reset MelonDS
# - Reset PCSX2
# - Reset PPSSPP
# - Reset Primehack
# - Reset RPCS3 # - Reset RPCS3
# - Reset Ryujinx # - Reset Ryujinx
# - Reset XEMU # - Reset XEMU
# - Reset PPSSPP # - Reset Yuzu
# - Reset Duckstation
# - Reset All Standalone Emulators # - Reset All Standalone Emulators
# - Reset Tools # - Reset Tools
# - Reset All # - Reset All
@ -72,6 +73,7 @@ configurator_reset_dialog() {
"MelonDS" \ "MelonDS" \
"PCSX2" \ "PCSX2" \
"PPSSPP" \ "PPSSPP" \
"Primehack" \
"RPCS3" \ "RPCS3" \
"Ryujinx" \ "Ryujinx" \
"XEMU" \ "XEMU" \
@ -114,6 +116,11 @@ configurator_reset_dialog() {
configurator_process_complete_dialog "resetting $emulator_to_reset" configurator_process_complete_dialog "resetting $emulator_to_reset"
;; ;;
"Primehack" )
primehack_init
configurator_process_complete_dialog "resetting $emulator_to_reset"
;;
"RPCS3" ) "RPCS3" )
rpcs3_init rpcs3_init
configurator_process_complete_dialog "resetting $emulator_to_reset" configurator_process_complete_dialog "resetting $emulator_to_reset"
@ -216,6 +223,7 @@ configurator_power_user_changes_dialog() {
"PCSX2-QT" \ "PCSX2-QT" \
"PCSX2-Legacy" \ "PCSX2-Legacy" \
"PPSSPP" \ "PPSSPP" \
"Primehack" \
"RPCS3" \ "RPCS3" \
"Ryujinx" \ "Ryujinx" \
"XEMU" \ "XEMU" \
@ -255,6 +263,10 @@ configurator_power_user_changes_dialog() {
PPSSPPSDL PPSSPPSDL
;; ;;
"Primehack" )
primehack-wrapper
;;
"RPCS3" ) "RPCS3" )
rpcs3 rpcs3
;; ;;
@ -417,7 +429,7 @@ configurator_move_dialog() {
fi fi
if [[ ! -L "$HOME/retrodeck" ]]; then # Always link back to original directory if [[ ! -L "$HOME/retrodeck" ]]; then # Always link back to original directory
ln -svf "$sdcard/retrodeck" "$HOME/retrodeck" ln -svf "$sdcard/retrodeck" "$HOME"
fi fi
rdhome="$sdcard/retrodeck" rdhome="$sdcard/retrodeck"
@ -466,7 +478,7 @@ configurator_move_dialog() {
fi fi
if [[ ! -L "$HOME/retrodeck" ]]; then if [[ ! -L "$HOME/retrodeck" ]]; then
ln -svf "$custom_dest/retrodeck" "$HOME/retrodeck" ln -svf "$custom_dest/retrodeck" "$HOME"
fi fi
rdhome="$custom_dest/retrodeck" rdhome="$custom_dest/retrodeck"