mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
RUN_GAME: hiding full commands in zenity list
This commit is contained in:
parent
e2ef2e8823
commit
21984292c0
|
@ -933,6 +933,10 @@ find_emulator() {
|
|||
fi
|
||||
}
|
||||
|
||||
|
||||
# TODO: %INJECT% is not yet working (Dolphin, rpcs3, vita3k)
|
||||
# TODO: add the logic of alt emulator and default emulator
|
||||
|
||||
run_game() {
|
||||
|
||||
# Initialize variables
|
||||
|
@ -1050,7 +1054,10 @@ find_system_commands() {
|
|||
done <<< "$commands"
|
||||
|
||||
# Show the list with Zenity and return the **command** (second column) selected
|
||||
selected_command=$(zenity --list --title="Select an emulator for $system_name" --column="Emulator" --column="Command" "${command_list[@]}" --width=800 --height=400 --print-column=2)
|
||||
selected_command=$(zenity --list \
|
||||
--title="Select an emulator for $system_name" \
|
||||
--column="Emulator" --column="Hidden Command" "${command_list[@]}" \
|
||||
--width=800 --height=400 --print-column=2 --hide-column=2)
|
||||
|
||||
echo "$selected_command"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue