From e6e161c8b89545af97354ee452e91e29d33cd3a4 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 8 Mar 2024 21:22:30 +0100 Subject: [PATCH] PONZU: fixed extract commands --- functions/functions.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/functions/functions.sh b/functions/functions.sh index 21997dd1..85cb3608 100644 --- a/functions/functions.sh +++ b/functions/functions.sh @@ -672,7 +672,7 @@ ponzu() { for ponzu_file in "${ponzu_files[@]}"; do # Check if the current ponzu file exists if [ -f "$ponzu_file" ]; then - if [[ "$ponzu_file" == *itra*]]; then + if [[ "$ponzu_file" == *itra* ]]; then log i "Found akai ponzu! Elaborating it" data_dir="/var/data/ponzu/Citra" local message="Akai ponzu is served, enjoy" @@ -696,13 +696,17 @@ ponzu() { log d "Cleaning up" cp -r squashfs-root/* "$tmp_folder" rm -rf * - mv "$tmp_folder/"** . - executable="" - log d "Making $executable executable" - chmod +x "$executable" if [[ "$ponzu_file" == *itra*]]; then + mv "$tmp_folder/usr/"** . + executable="$data_dir/bin/citra-qt" + log d "Making $executable executable" + chmod +x "$executable" set_setting_value $rd_conf "akai_ponzu" "true" retrodeck "options" elif [[ "$ponzu_file" == *uzu* ]]; then + mv "$tmp_folder/usr/"** . + executable="$data_dir/bin/yuzu" + log d "Making $executable executable" + chmod +x "$executable" set_setting_value $rd_conf "kiroi_ponzu" "true" retrodeck "options" fi