From 9fbc59fe0978b34988ed0917271aa3a5a4986713 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 30 Oct 2022 18:16:39 +0100 Subject: [PATCH] conf/post_decalrations.conf: add ports of game 'Call of duty'. --- conf/post_decalrations.conf | 75 +++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/conf/post_decalrations.conf b/conf/post_decalrations.conf index be23fe6..df49eb6 100644 --- a/conf/post_decalrations.conf +++ b/conf/post_decalrations.conf @@ -1524,6 +1524,44 @@ if $allow_game_steam_out ; then done IFS="$CUR_IFS" fi +if $allow_game_call_of_duty ; then + + IFS=',' ; for _port in $standard_game_call_of_duty_pc_udp_ports ; do + + if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then + continue + fi + + game_ports_udp_arr+=("$_port") + + out_udp_port_arr+=("$_port") + + done + IFS=',' ; for _port in $standard_game_call_of_duty_ps_udp_ports ; do + + if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then + continue + fi + + game_ports_udp_arr+=("$_port") + + out_udp_port_arr+=("$_port") + + done + IFS=',' ; for _port in $standard_game_call_of_duty_xbox_udp_ports ; do + + if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then + continue + fi + + game_ports_udp_arr+=("$_port") + + out_udp_port_arr+=("$_port") + + done + + IFS="$CUR_IFS" +fi declare -a game_ports_tcp_arr=() @@ -1611,6 +1649,43 @@ if $allow_game_steam_out ; then done IFS="$CUR_IFS" fi +if $allow_game_call_of_duty ; then + IFS=',' ; for _port in $standard_game_call_of_duty_pc_tcp_ports ; do + + if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then + continue + fi + + game_ports_tcp_arr+=("$_port") + + out_tcp_port_arr+=("$_port") + + done + IFS=',' ; for _port in $standard_game_call_of_duty_ps_tcp_ports ; do + + if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then + continue + fi + + game_ports_tcp_arr+=("$_port") + + out_tcp_port_arr+=("$_port") + + done + IFS=',' ; for _port in $standard_game_call_of_duty_xbox_tcp_ports ; do + + if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then + continue + fi + + game_ports_tcp_arr+=("$_port") + + out_tcp_port_arr+=("$_port") + + done + + IFS="$CUR_IFS" +fi # ================================================== # END: gather out ports