Skip to content

Commit 06a7278

Browse files
authored
Fix argument count when launched with Steam on Linux (#563)
1 parent 472e950 commit 06a7278

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# BepInEx start script
3-
#
3+
#
44
# Run the script to start the game with BepInEx enabled
55
#
66
# There are two ways to use this script
@@ -65,8 +65,8 @@ corlib_dir="dotnet"
6565
# Special case: program is launched via Steam
6666
# In that case rerun the script via their bootstrapper to ensure Steam overlay works
6767
if [ "$2" = "SteamLaunch" ]; then
68-
steam="$1 $2 $3 $4 $0 $5"
69-
shift 5
68+
steam="$1 $2 $3 $4 $5 $6 $0 $7"
69+
shift 7
7070
$steam "$@"
7171
exit
7272
fi
@@ -135,7 +135,7 @@ abs_path() {
135135
}
136136

137137
_readlink() {
138-
# relative links with readlink (without -f) do not preserve the path info
138+
# relative links with readlink (without -f) do not preserve the path info
139139
ab_path="$(abs_path "$1")"
140140
link="$(readlink "${ab_path}")"
141141
case $link in
@@ -148,8 +148,8 @@ _readlink() {
148148

149149
resolve_executable_path () {
150150
e_path="$(abs_path "$1")"
151-
152-
while [ -L "${e_path}" ]; do
151+
152+
while [ -L "${e_path}" ]; do
153153
e_path=$(_readlink "${e_path}");
154154
done
155155
echo "${e_path}"

Runtimes/Unity/Doorstop/run_bepinex_mono.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# BepInEx start script
3-
#
3+
#
44
# Run the script to start the game with BepInEx enabled
55
#
66
# There are two ways to use this script
@@ -65,8 +65,8 @@ corlib_dir=""
6565
# Special case: program is launched via Steam
6666
# In that case rerun the script via their bootstrapper to ensure Steam overlay works
6767
if [ "$2" = "SteamLaunch" ]; then
68-
steam="$1 $2 $3 $4 $0 $5"
69-
shift 5
68+
steam="$1 $2 $3 $4 $5 $6 $0 $7"
69+
shift 7
7070
$steam "$@"
7171
exit
7272
fi
@@ -135,7 +135,7 @@ abs_path() {
135135
}
136136

137137
_readlink() {
138-
# relative links with readlink (without -f) do not preserve the path info
138+
# relative links with readlink (without -f) do not preserve the path info
139139
ab_path="$(abs_path "$1")"
140140
link="$(readlink "${ab_path}")"
141141
case $link in
@@ -148,8 +148,8 @@ _readlink() {
148148

149149
resolve_executable_path () {
150150
e_path="$(abs_path "$1")"
151-
152-
while [ -L "${e_path}" ]; do
151+
152+
while [ -L "${e_path}" ]; do
153153
e_path=$(_readlink "${e_path}");
154154
done
155155
echo "${e_path}"

0 commit comments

Comments
 (0)