mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-24 05:22:07 +00:00
Fix the Ryujinx launcher script
Ryujinx.Headless.SDL3 no longer exists. Only Ryujinx is ever launched. If the Ryujinx executable doesn't exist, the shell will state that and error out with a code anyway. The check isn't needed and omitting it provides more information if something goes wrong. If possible, we could remove this shell script entirely. Most users who use Feral GameMode will know to turn it on anyway, and the user should be in control instead of having it forced. The bug with LANG=C.UTF-8 seems fixable (I haven't encountered it, fontconfig related?) and I can find no mention of what EnableAlternateStackCheck even does.
This commit is contained in:
parent
410ea9bfe2
commit
f83818bafe
1 changed files with 2 additions and 14 deletions
|
|
@ -1,23 +1,11 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
||||
|
||||
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL3" ]; then
|
||||
RYUJINX_BIN="Ryujinx.Headless.SDL3"
|
||||
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" "$@"
|
||||
exec $COMMAND "$SCRIPT_DIR/Ryujinx" "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue