Skip to content

Commit fb2d554

Browse files
authored
fix: add sf & lo to info_game (#3653)
1 parent ac9bfdb commit fb2d554

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lgsm/functions/info_game.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,14 @@ fn_info_game_kf2(){
790790
defaultmap=${defaultmap:-"NOT SET"}
791791
}
792792

793+
fn_info_game_lo(){
794+
# Parameters
795+
servername=${servername:-"NOT SET"}
796+
port=${port:-"0"}
797+
queryport=${queryport:-"0"}
798+
maxplayers=${slots:-"0"}
799+
}
800+
793801
fn_info_game_mc(){
794802
# Config
795803
if [ ! -f "${servercfgfullpath}" ]; then
@@ -1550,6 +1558,14 @@ fn_info_game_sdtd(){
15501558
fi
15511559
}
15521560

1561+
fn_info_game_sf(){
1562+
# Parameters
1563+
servername=${selfname:-"NOT SET"}
1564+
port=${port:-"0"}
1565+
queryport=${queryport:-"0"}
1566+
beaconport=${beaconport:-"0"}
1567+
}
1568+
15531569
fn_info_game_sof2(){
15541570
# Config
15551571
if [ ! -f "${servercfgfullpath}" ]; then
@@ -2230,6 +2246,8 @@ elif [ "${shortname}" == "kf" ]; then
22302246
fn_info_game_kf
22312247
elif [ "${shortname}" == "kf2" ]; then
22322248
fn_info_game_kf2
2249+
elif [ "${shortname}" == "lo" ]; then
2250+
fn_info_game_lo
22332251
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]; then
22342252
fn_info_game_mc
22352253
elif [ "${shortname}" == "mcb" ]; then
@@ -2280,6 +2298,8 @@ elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
22802298
fn_info_game_scpsl
22812299
elif [ "${shortname}" == "sdtd" ]; then
22822300
fn_info_game_sdtd
2301+
elif [ "${shortname}" == "sf" ]; then
2302+
fn_info_game_sf
22832303
elif [ "${shortname}" == "sof2" ]; then
22842304
fn_info_game_sof2
22852305
elif [ "${shortname}" == "sol" ]; then

0 commit comments

Comments
 (0)