2023-01-07 03:06:13 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-05-05 03:06:15 -04:00
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
2023-01-09 16:58:51 -05:00
|
|
|
RYUJINX_BIN="Ryujinx"
|
2023-01-07 03:06:13 -05:00
|
|
|
|
2023-01-09 16:58:51 -05:00
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Ava" ]; then
|
|
|
|
RYUJINX_BIN="Ryujinx.Ava"
|
|
|
|
fi
|
|
|
|
|
2023-01-09 18:45:46 -05:00
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL2" ]; then
|
|
|
|
RYUJINX_BIN="Ryujinx.Headless.SDL2"
|
|
|
|
fi
|
|
|
|
|
2023-05-28 17:54:22 -04:00
|
|
|
COMMAND="env DOTNET_EnableAlternateStackCheck=1"
|
|
|
|
|
|
|
|
if command -v gamemoderun > /dev/null 2>&1; then
|
|
|
|
COMMAND="$COMMAND gamemoderun"
|
|
|
|
fi
|
|
|
|
|
2023-05-29 19:48:37 -04:00
|
|
|
$COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@"
|