KASM-6444 update pathing for retroarch init

This commit is contained in:
ryan.kuba 2024-09-13 09:04:53 -04:00
parent b328375581
commit 166181cfaa
No known key found for this signature in database

View File

@ -23,15 +23,15 @@ rm -f assets.zip info.zip
chown -R 1000:1000 $HOME/.config/retroarch chown -R 1000:1000 $HOME/.config/retroarch
# Wrap with VGL # Wrap with VGL
rm /usr/bin/retroarch mv /usr/bin/retroarch /usr/bin/retroarch-real
cat >/usr/bin/retroarch <<EOL cat >/usr/bin/retroarch <<EOL
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "\${KASM_EGL_CARD}" ] && [ ! -z "\${KASM_RENDERD}" ] && [ -O "\${KASM_RENDERD}" ] && [ -O "\${KASM_EGL_CARD}" ] ; then if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "\${KASM_EGL_CARD}" ] && [ ! -z "\${KASM_RENDERD}" ] && [ -O "\${KASM_RENDERD}" ] && [ -O "\${KASM_EGL_CARD}" ] ; then
echo "Starting Retroarch with GPU Acceleration on EGL device \${KASM_EGL_CARD}" echo "Starting Retroarch with GPU Acceleration on EGL device \${KASM_EGL_CARD}"
vglrun -d "\${KASM_EGL_CARD}" /usr/games/retroarch "\$@" vglrun -d "\${KASM_EGL_CARD}" /usr/bin/retroarch-real "\$@"
else else
echo "Starting Retroarch" echo "Starting Retroarch"
/usr/games/retroarch "\$@" /usr/bin/retroarch-real "\$@"
fi fi
EOL EOL
chmod +x /usr/bin/retroarch chmod +x /usr/bin/retroarch