Dragoon Dorise 00a8f1c19c
New paths (#1381)
* new paths

* /

* EmuDeck/

* mv

* no &

* ESDE new location

* ESDE new path

* no symlink load

* bigpemu new path

* force move

* global vars

* oopsie

* missing $emudeckBackend

* better migration detection

* Keep Appimages in Applications

* Keep Appimages in Applications
2025-01-02 13:42:31 +01:00

41 lines
1.1 KiB
Bash

#!/bin/bash
function Android_Yuzu_install(){
setMSG "Installing Yuzu"
temp_url="$(getLatestReleaseURLGH "yuzu-emu/yuzu-android" ".apk")"
temp_emu="yuzu"
Android_ADB_dl_installAPK $temp_emu $temp_url
}
function Android_Yuzu_init(){
setMSG "Setting up Yuzu"
rsync -ra "$emudeckBackend/android/configs/Android/data/org.yuzu.yuzu_emu/" "$Android_temp_android_data/org.yuzu.yuzu_emu/"
originFile="$Android_temp_android_data/org.yuzu.yuzu_emu/files/config/config.ini"
origin="XXXX"
#SD or internal?
#SD or internal?
if [[ "$androidStoragePath" == *-* ]]; then
target="${androidStoragePath//\/storage\//}"
else
target="primary"
fi
sed -E -i "s|$origin|$target|g" "$originFile"
}
function Android_Yuzu_setup(){
setMSG "YUZU"
adb shell pm grant org.yuzu.yuzu_emu android.permission.WRITE_EXTERNAL_STORAGE
adb shell am start -n org.yuzu.yuzu_emu/.ui.main.MainActivity
zenity --info --width=400 --text="Waiting for user action..."
adb shell am force-stop org.yuzu.yuzu_emu
}
function Android_Yuzu_IsInstalled(){
package="org.yuzu.yuzu_emu"
Android_ADB_appInstalled $package
}