From 2818362e30ab7acb3feff97d13627d1b4ba6d565 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 8 Sep 2024 13:36:16 +0900 Subject: [PATCH] RUN_GAME: system name prettyfied --- functions/other_functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/other_functions.sh b/functions/other_functions.sh index 81931318..d8b854f0 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -918,9 +918,11 @@ run_game() { (.value.system[]? == $system) ) | .key' "$features") + local pretty_system=$(jq -r --arg system "$system" '.system[$system].name' "$features") + # Check if multiple emulators are found and prompt the user to select one with zenity if [[ $(echo "$emulators" | wc -l) -gt 1 ]]; then - emulator=$(echo "$emulators" | zenity --list --title="Select Emulator" --text="Multiple emulators found for $system. Select one to run." --column="Emulator") + emulator=$(echo "$emulators" | zenity --list --title="Select Emulator" --text="Multiple emulators found for $pretty_system. Select one to run." --column="Emulator") else emulator="$emulators" fi