From 5157426cb60ed49f622f75db7c61d68cae41c78a Mon Sep 17 00:00:00 2001 From: BearOso Date: Tue, 21 Mar 2023 17:45:39 -0500 Subject: [PATCH] Gtk: Use translated binding names in preferences. --- gtk/src/gtk_preferences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 83f37f53..be41178f 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -904,14 +904,14 @@ void Snes9xPreferences::bindings_to_dialog(int joypad) for (int i = 0; i < NUM_JOYPAD_LINKS; i++) { - set_entry_text(b_links[i].button_name, bindings[i].as_string()); + set_entry_text(b_links[i].button_name, bindings[i].to_string(true)); } auto shortcut_names = &b_links[NUM_JOYPAD_LINKS]; for (int i = 0; shortcut_names[i].button_name; i++) { - set_entry_text(shortcut_names[i].button_name, shortcut[i].as_string()); + set_entry_text(shortcut_names[i].button_name, shortcut[i].to_string(true)); } }