mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-16 19:35:39 +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)
|
(.value.system[]? == $system)
|
||||||
) | .key' "$features")
|
) | .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
|
# Check if multiple emulators are found and prompt the user to select one with zenity
|
||||||
if [[ $(echo "$emulators" | wc -l) -gt 1 ]]; then
|
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
|
else
|
||||||
emulator="$emulators"
|
emulator="$emulators"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue