mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
Package catalog: per-device override file; shadPS4 opens with ROMs/ps4
Download/droiddeck-catalog-url points one device at another catalog, to install a package from a catalog branch before it is live. The shadPS4 AppImage adds the ROMs folder's ps4 folder to its game folders the first time it is opened from the menu.
This commit is contained in:
1 parent
be7a50af46
commit
b07a2d2842
3 files changed
+25
-3
No files matched your search
@@ -56,8 +56,20 @@ cat > "$APPDIR/AppRun" <<'RUN'
|
||||
#!/bin/sh
|
||||
# shadPS4 is a command-line emulator; opened from a menu with nothing to run, it shows its own
|
||||
# Big Picture game list instead of a usage box.
|
||||
# The first time, the ROMs folder's ps4 folder (any case) is added to its game folders so the
|
||||
# list is not empty; a folder the player removes later stays removed.
|
||||
HERE=$(dirname "$(readlink -f "$0")")
|
||||
[ $# -eq 0 ] && set -- --big-picture
|
||||
if [ $# -eq 0 ]; then
|
||||
MARK="${XDG_DATA_HOME:-$HOME/.local/share}/shadPS4/.droiddeck-games-folder"
|
||||
if [ ! -e "$MARK" ]; then
|
||||
for d in /root/ROMs/*; do
|
||||
case "$(basename "$d" | tr 'A-Z' 'a-z')" in
|
||||
ps4) [ -d "$d" ] && "$HERE/usr/bin/shadps4" --add-game-folder "$d" && mkdir -p "$(dirname "$MARK")" && : > "$MARK" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
set -- --big-picture
|
||||
fi
|
||||
exec "$HERE/usr/bin/shadps4" "$@"
|
||||
RUN
|
||||
chmod 755 "$APPDIR/AppRun"
|
||||
|
||||
Reference in new issue
Block a user