2023-01-07 09:06:13 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-05-05 09:06:15 +02:00
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
2024-02-11 00:57:23 +01:00
|
|
|
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL2" ]; then
|
|
|
|
RYUJINX_BIN="Ryujinx.Headless.SDL2"
|
|
|
|
fi
|
2023-01-07 09:06:13 +01:00
|
|
|
|
2024-02-11 00:57:23 +01:00
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx" ]; then
|
|
|
|
RYUJINX_BIN="Ryujinx"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$RYUJINX_BIN" ]; then
|
|
|
|
exit 1
|
2023-01-10 00:45:46 +01:00
|
|
|
fi
|
|
|
|
|
2024-12-01 00:17:30 +01:00
|
|
|
COMMAND="env LANG=C.UTF-8 DOTNET_EnableAlternateStackCheck=1"
|
2023-05-28 23:54:22 +02:00
|
|
|
|
|
|
|
if command -v gamemoderun > /dev/null 2>&1; then
|
|
|
|
COMMAND="$COMMAND gamemoderun"
|
|
|
|
fi
|
|
|
|
|
2024-02-11 00:57:23 +01:00
|
|
|
exec $COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@"
|