From 0526e718fef485357ad56586027edef3c3eb43b3 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 13 May 2023 23:36:19 +0100 Subject: [PATCH] fix pc --- lgsm/modules/info_game.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index 7a10060c8..17c67563b 100644 --- a/lgsm/modules/info_game.sh +++ b/lgsm/modules/info_game.sh @@ -209,7 +209,7 @@ fn_info_game_pc_config() { if [ -n "${3}" ]; then servercfgfullpath="${3}" fi - eval "${1}=\"$(sed -n '/^\<'"${2}"'\>/ { s/.*: *"\?\([^"]*\)"\?/\1/;s/;$//p;q }' "${servercfgfullpath}" | tr -d '\r')\"" + eval "${1}=\"$(sed -n '/^\<'"${2}"'\>/ { s/.*: *\"\?\([^"]*\)\"\?/\1/p;q }' "${servercfgfullpath}" | tr -d '\r')\"" configtype="pc_config" } @@ -1433,7 +1433,7 @@ fn_info_game_pc() { if [ -f "${servercfgfullpath}" ]; then fn_info_game_pc_config "servername" "name" fn_info_game_pc_config "serverpassword" "password" - fn_info_game_pc_config "maxplayers" "MaxPlayers" + fn_info_game_pc_config "maxplayers" "maxPlayerCount" fn_info_game_pc_config "port" "hostPort" fn_info_game_pc_config "queryport" "queryPort" fn_info_game_pc_config "steamport" "steamPort"