mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
35d91a0e58
* memory: Check results of pinvoke calls * Increase vm.max_map_count when running Ryujinx * Add SupportedOSPlatform attribute for WindowsApiException * Revert increasing vm.max_map_count via script * Add LinuxHelper to detect and increase vm.max_map_count With GUI dialogs, this should be a bit more user-friendly. * Supply arguments as a list to RunPkExec * Add error logging in case RunPkExec() fails * Prevent Gtk from crashing
20 lines
No EOL
425 B
Bash
20 lines
No EOL
425 B
Bash
#!/bin/sh
|
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
|
RYUJINX_BIN="Ryujinx"
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Ava" ]; then
|
|
RYUJINX_BIN="Ryujinx.Ava"
|
|
fi
|
|
|
|
if [ -f "$SCRIPT_DIR/Ryujinx.Headless.SDL2" ]; then
|
|
RYUJINX_BIN="Ryujinx.Headless.SDL2"
|
|
fi
|
|
|
|
COMMAND="env DOTNET_EnableAlternateStackCheck=1"
|
|
|
|
if command -v gamemoderun > /dev/null 2>&1; then
|
|
COMMAND="$COMMAND gamemoderun"
|
|
fi
|
|
|
|
$COMMAND "$SCRIPT_DIR/$RYUJINX_BIN" "$@" |