RUN_GAME: hiding full commands in zenity list

This commit is contained in:
XargonWan 2024-09-10 20:41:54 +09:00
parent e2ef2e8823
commit 21984292c0

View file

@ -933,6 +933,10 @@ find_emulator() {
fi fi
} }
# TODO: %INJECT% is not yet working (Dolphin, rpcs3, vita3k)
# TODO: add the logic of alt emulator and default emulator
run_game() { run_game() {
# Initialize variables # Initialize variables
@ -1050,7 +1054,10 @@ find_system_commands() {
done <<< "$commands" done <<< "$commands"
# Show the list with Zenity and return the **command** (second column) selected # 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" echo "$selected_command"
} }