mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-22 22:45:46 +00:00
23 lines
460 B
Bash
Executable file
23 lines
460 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" ]; then
|
|
RYUJINX_BIN="Ryujinx"
|
|
fi
|
|
|
|
if [ -z "$RYUJINX_BIN" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
COMMAND="env LANG=C.UTF-8 DOTNET_EnableAlternateStackCheck=1"
|
|
|
|
if command -v gamemoderun > /dev/null 2>&1; then
|
|
COMMAND="$COMMAND gamemoderun"
|
|
fi
|
|
|
|
exec $COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@"
|