From 21984292c0c7e024b07e5718dfd5468ae7f9f6d0 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 10 Sep 2024 20:41:54 +0900 Subject: [PATCH] RUN_GAME: hiding full commands in zenity list --- functions/other_functions.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/functions/other_functions.sh b/functions/other_functions.sh index 7b6fe033..8543f5bd 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -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" }