mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
RUN_GAME: system name prettyfied
This commit is contained in:
parent
bcf0f2b8cd
commit
2818362e30
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue