PONZU: fixed extract commands

This commit is contained in:
XargonWan 2024-03-08 21:22:30 +01:00
parent 6aca748082
commit e6e161c8b8

View file

@ -672,7 +672,7 @@ ponzu() {
for ponzu_file in "${ponzu_files[@]}"; do for ponzu_file in "${ponzu_files[@]}"; do
# Check if the current ponzu file exists # Check if the current ponzu file exists
if [ -f "$ponzu_file" ]; then if [ -f "$ponzu_file" ]; then
if [[ "$ponzu_file" == *itra*]]; then if [[ "$ponzu_file" == *itra* ]]; then
log i "Found akai ponzu! Elaborating it" log i "Found akai ponzu! Elaborating it"
data_dir="/var/data/ponzu/Citra" data_dir="/var/data/ponzu/Citra"
local message="Akai ponzu is served, enjoy" local message="Akai ponzu is served, enjoy"
@ -696,13 +696,17 @@ ponzu() {
log d "Cleaning up" log d "Cleaning up"
cp -r squashfs-root/* "$tmp_folder" cp -r squashfs-root/* "$tmp_folder"
rm -rf * rm -rf *
mv "$tmp_folder/"** . if [[ "$ponzu_file" == *itra*]]; then
executable="" mv "$tmp_folder/usr/"** .
executable="$data_dir/bin/citra-qt"
log d "Making $executable executable" log d "Making $executable executable"
chmod +x "$executable" chmod +x "$executable"
if [[ "$ponzu_file" == *itra*]]; then
set_setting_value $rd_conf "akai_ponzu" "true" retrodeck "options" set_setting_value $rd_conf "akai_ponzu" "true" retrodeck "options"
elif [[ "$ponzu_file" == *uzu* ]]; then 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" set_setting_value $rd_conf "kiroi_ponzu" "true" retrodeck "options"
fi fi