make launcher and shortcut for xenia

This commit is contained in:
Livedeht 2022-12-31 16:23:30 -05:00
parent de0ce5bc8d
commit b5d0218385
2 changed files with 17 additions and 2 deletions

View File

@ -32,7 +32,22 @@ Xenia_install(){
unzip -o "$romsPath"/xbox360/xenia.zip -d "$romsPath"/xbox360/tmp
rsync -avzh "$romsPath"/xbox360/tmp/ "$romsPath"/xbox360/
rm -rf "$romsPath"/xbox360/tmp
rm -f "$romsPath"/xbox360/xenia.zip
rm -f "$romsPath"/xbox360/xenia.zip
cp "$EMUDECKGIT/tools/launchers/xenia.sh" "${toolsPath}/launchers/xenia.sh"
sed -i "s|/run/media/mmcblk0p1/Emulation/tools|${toolsPath}|g" "${toolsPath}/launchers/xenia.sh"
sed -i "s|/run/media/mmcblk0p1/Emulation/roms|${romsPath}|" "${toolsPath}/launchers/xenia.sh"
# if [[ "$launchLine" == *"PROTONLAUNCH"* ]]; then
# changeLine '"${PROTONLAUNCH}"' "$launchLine" "${toolsPath}/launchers/xenia.sh"
# fi
chmod +x "${toolsPath}/launchers/xenia.sh"
createDesktopShortcut "$HOME/.local/share/applications/xenia.desktop" \
"xenia EmuDeck" \
"${toolsPath}/launchers/xenia.sh" \
"False"
}
#ApplyInitialSettings

View File

@ -17,7 +17,7 @@ APPIDPY="/run/media/mmcblk0p1/Emulation/tools/appID.py"
PROTONLAUNCH="/run/media/mmcblk0p1/Emulation/tools/proton-launch.sh"
# Xenia.exe location
XENIA="/run/media/mmcblk0p1/Emulation/roms/xbox360/xenia.exe"
XENIA="/run/media/mmcblk0p1/Emulation/roms/xbox360/xenia_canary.exe"
# APPID
APPID=$( /usr/bin/python "${APPIDPY}" "${EXE}" "${NAME}" )