mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-22 14:26:17 +00:00
95c4912d58
* Avoid Ryujinx.Headless.SDL2 as a last resort in Ryujinx.desktop when you have more than one executable installed.
28 lines
523 B
Bash
Executable File
28 lines
523 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL2" ]; then
|
|
RYUJINX_BIN="Ryujinx.Headless.SDL2"
|
|
fi
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Ava" ]; then
|
|
RYUJINX_BIN="Ryujinx.Ava"
|
|
fi
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx" ]; then
|
|
RYUJINX_BIN="Ryujinx"
|
|
fi
|
|
|
|
if [ -z "$RYUJINX_BIN" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
COMMAND="env DOTNET_EnableAlternateStackCheck=1"
|
|
|
|
if command -v gamemoderun > /dev/null 2>&1; then
|
|
COMMAND="$COMMAND gamemoderun"
|
|
fi
|
|
|
|
exec $COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@"
|