From c012cb5574112bc081d904749483a8222173b490 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 12 Sep 2024 14:37:51 -0400 Subject: [PATCH] Updated the add_launcher function to handle extra parameters. --- audiogame-manager.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 14bc14c..a2fe53b 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1050,6 +1050,11 @@ game_launcher() { add_launcher() { local launchSettings="${game,,}" launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}" + shift + while [[ $# -gt 0 ]]; do + launchSettings+="|$1" + shift + done if ! grep -F -q -x "${launchSettings}" "${configFile}" 2> /dev/null ; then echo "${launchSettings}" >> "${configFile}" sort -o "${configFile}" "${configFile}"