mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-24 03:46:01 +00:00
70fcba39de
* Remove GetBaseApplicationDirectory() & Move logs directory to user base path We should assume the application directory might be write-protected. * Use Ryujinx.sh in Ryujinx.desktop This desktop file isn't really used right now, so this changes effectively nothing. * Use properties in ReleaseInformation.cs and add ConfigName property * Configure config filename in Github workflows * Add a separate config step for macOS Because they use BSD sed instead of GNU sed * Keep log directory at the old location for dev environments * Add FileSystemUtils since Directory.Move() doesn't work across filesystems Steal CopyDirectory code from https://learn.microsoft.com/en-us/dotnet/standard/io/how-to-copy-directories * Fix "Open Logs folder" button pointing to the wrong directory * Add execute permissions to Ryujinx.sh * Fix missing newlines * AppDataManager: Use FileSystemUtils.MoveDirectory() * Make dotnet format happy * Add a fallback for the logging directory
20 lines
426 B
Bash
Executable file
20 lines
426 B
Bash
Executable file
#!/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" "$@"
|