mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix argument count when launched with Steam on Linux (#563)
This commit is contained in:
1 parent
472e950179
commit
06a7278f80
2 files changed
+12
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# BepInEx start script
|
||||
#
|
||||
#
|
||||
# Run the script to start the game with BepInEx enabled
|
||||
#
|
||||
# There are two ways to use this script
|
||||
@@ -65,8 +65,8 @@ corlib_dir="dotnet"
|
||||
# Special case: program is launched via Steam
|
||||
# In that case rerun the script via their bootstrapper to ensure Steam overlay works
|
||||
if [ "$2" = "SteamLaunch" ]; then
|
||||
steam="$1 $2 $3 $4 $0 $5"
|
||||
shift 5
|
||||
steam="$1 $2 $3 $4 $5 $6 $0 $7"
|
||||
shift 7
|
||||
$steam "$@"
|
||||
exit
|
||||
fi
|
||||
@@ -135,7 +135,7 @@ abs_path() {
|
||||
}
|
||||
|
||||
_readlink() {
|
||||
# relative links with readlink (without -f) do not preserve the path info
|
||||
# relative links with readlink (without -f) do not preserve the path info
|
||||
ab_path="$(abs_path "$1")"
|
||||
link="$(readlink "${ab_path}")"
|
||||
case $link in
|
||||
@@ -148,8 +148,8 @@ _readlink() {
|
||||
|
||||
resolve_executable_path () {
|
||||
e_path="$(abs_path "$1")"
|
||||
|
||||
while [ -L "${e_path}" ]; do
|
||||
|
||||
while [ -L "${e_path}" ]; do
|
||||
e_path=$(_readlink "${e_path}");
|
||||
done
|
||||
echo "${e_path}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# BepInEx start script
|
||||
#
|
||||
#
|
||||
# Run the script to start the game with BepInEx enabled
|
||||
#
|
||||
# There are two ways to use this script
|
||||
@@ -65,8 +65,8 @@ corlib_dir=""
|
||||
# Special case: program is launched via Steam
|
||||
# In that case rerun the script via their bootstrapper to ensure Steam overlay works
|
||||
if [ "$2" = "SteamLaunch" ]; then
|
||||
steam="$1 $2 $3 $4 $0 $5"
|
||||
shift 5
|
||||
steam="$1 $2 $3 $4 $5 $6 $0 $7"
|
||||
shift 7
|
||||
$steam "$@"
|
||||
exit
|
||||
fi
|
||||
@@ -135,7 +135,7 @@ abs_path() {
|
||||
}
|
||||
|
||||
_readlink() {
|
||||
# relative links with readlink (without -f) do not preserve the path info
|
||||
# relative links with readlink (without -f) do not preserve the path info
|
||||
ab_path="$(abs_path "$1")"
|
||||
link="$(readlink "${ab_path}")"
|
||||
case $link in
|
||||
@@ -148,8 +148,8 @@ _readlink() {
|
||||
|
||||
resolve_executable_path () {
|
||||
e_path="$(abs_path "$1")"
|
||||
|
||||
while [ -L "${e_path}" ]; do
|
||||
|
||||
while [ -L "${e_path}" ]; do
|
||||
e_path=$(_readlink "${e_path}");
|
||||
done
|
||||
echo "${e_path}"
|
||||
|
||||
Reference in new issue
Block a user