Skip to content

Commit de64b81

Browse files
committed
fix linux launch
1 parent fb45c67 commit de64b81

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

game/hl2.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ done
4040
# Reset the argument list
4141
set -- "${original_args[@]}"
4242

43+
# Remove -gathermod from args
44+
filtered_args=()
45+
while [[ $# -gt 0 ]]; do
46+
if [[ $1 != "-gathermod" ]]; then
47+
filtered_args+=("$1")
48+
fi
49+
shift
50+
done
51+
set -- "${filtered_args[@]}"
52+
4353
server_64_dll="$game_dir/bin/linux64/server.so"
4454

4555
is_64_bit=0

game/tc2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626
#trap 'echo "Received SIGTERM, shutting down gracefully..." && kill -TERM $!' SIGTERM
2727
#trap 'echo "Received SIGPIPE, shutting down gracefully..." && continue' SIGPIPE
2828

29-
${SLR_SNIPER_PATH} --devel -- ./tc2_linux64 -steam -particles 1 -nobreakpad -nominidumps "$@" +ip 127.0.0.1
29+
${SLR_SNIPER_PATH} --devel -- ./tc2_linux64 -steam -gathermod -particles 1 -nobreakpad -nominidump "$@" +ip 127.0.0.1
3030

3131
popd > /dev/null

0 commit comments

Comments
 (0)