mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 09:05:42 +00:00
GYRODSU: fixed installation process + launching/quitting functions update
This commit is contained in:
parent
bdbfd1abb1
commit
e11f667c43
|
@ -528,13 +528,20 @@ easter_eggs() {
|
|||
}
|
||||
|
||||
quit_retrodeck() {
|
||||
echo "Terminating RetroDECK" # TODO: logger
|
||||
pkill -f retrodeck
|
||||
echo "Terminating ES-DE" # TODO: logger
|
||||
pkill -f emulationstation
|
||||
pkill -f es-de
|
||||
echo "Terminating GyroDSU" # TODO: logger
|
||||
pkill -f sdgyrodsu
|
||||
}
|
||||
|
||||
start_retrodeck() {
|
||||
easter_eggs # Check if today has a surprise splashscreen and load it if so
|
||||
# normal startup
|
||||
echo "Starting RetroDECK v$version"
|
||||
echo "Initializing GyroDSU" # TODO: logger
|
||||
/bin/bash "/var/data/sdgyrodsu/sdgyrodsu"
|
||||
emulationstation --home /var/config/emulationstation
|
||||
}
|
||||
|
|
|
@ -644,6 +644,8 @@ prepare_emulator() {
|
|||
dir_prep "$screenshots_folder" "/var/data/yuzu/screenshots"
|
||||
dir_prep "$mods_folder/Yuzu" "/var/data/yuzu/load"
|
||||
mkdir -pv "$rdhome/customs/yuzu"
|
||||
rm -vf "/app/bin/yuzu-rdwrapper"
|
||||
ln -vs "/app/tools/yuzu-rdwrapper" "/app/bin/yuzu-rdwrapper"
|
||||
# removing dead symlinks as they were present in a past version
|
||||
if [ -d $bios_folder/switch ]; then
|
||||
find $bios_folder/switch -xtype l -exec rm {} \;
|
||||
|
@ -749,11 +751,16 @@ prepare_emulator() {
|
|||
echo "----------------------"
|
||||
echo "Initializing GYRODSU"
|
||||
echo "----------------------"
|
||||
rm -rf /var/data/gyrodsu
|
||||
mkdir -p /var/data/gyrodsu
|
||||
rm -rf /var/data/sdgyrodsu
|
||||
mkdir -p /var/data/sdgyrodsu
|
||||
cd /app/retrodeck/gyrodsu
|
||||
/bin/bash /app/retrodeck/gyrodsu/install-gyrodsu.sh
|
||||
# gyrodsu is working on $HOME, so we're temporarly rerouting it ot /var/data
|
||||
ORIGINAL_HOME=$HOME
|
||||
export HOME=/var/data
|
||||
/bin/bash /app/retrodeck/gyrodsu/install.sh
|
||||
export HOME=$ORIGINAL_HOME
|
||||
cd - # back to the previous dir
|
||||
chmod +x "/var/data/sdgyrodsu/*"
|
||||
fi
|
||||
|
||||
# Update presets for all emulators after any reset or move
|
||||
|
|
|
@ -725,12 +725,8 @@ modules:
|
|||
buildsystem: simple
|
||||
build-commands:
|
||||
- mkdir -p ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- cp install.sh ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- cp logcurrentrun.sh ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- cp sdgyrodsu ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- cp sdgyrodsu.service ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- cp * ${FLATPAK_DEST}/retrodeck/gyrodsu
|
||||
- chmod +x ${FLATPAK_DEST}/retrodeck/gyrodsu/*
|
||||
- sed -i 's/\$HOME/\/var\/data\/g' ${FLATPAK_DEST}/retrodeck/gyrodsu/install.sh
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/kmicki/SteamDeckGyroDSU/releases/latest/download/SteamDeckGyroDSUSetup.zip
|
||||
|
|
Loading…
Reference in a new issue