Skip to content

Commit 87a26a5

Browse files
libretroadminLibretroAdmin
authored andcommitted
ui/qt: pass the bind labels through UserBindsPage
Missed caller from the label split: input_config_get_bind_string grew two struct input_bind_label parameters, and this one is in C++ behind HAVE_QT, so it was not covered by a C-only build. The loop already has the port and bind index, so it indexes the label arrays exactly like the equivalent site in menu_displaylist.c. Verified by building with --enable-qt against Qt 5.15: ui_qt_widgets.cpp compiles and the tree links. Config load/save round-trip on the Qt-enabled binary still matches the pre-split baseline byte for byte (88 labels).
1 parent ad106a6 commit 87a26a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ui/drivers/ui_qt_widgets.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5800,7 +5800,10 @@ QWidget *UserBindsPage::widget()
58005800
input_config_get_bind_auto(p, retro_id);
58015801

58025802
input_config_get_bind_string(settings, descriptor,
5803-
keybind, auto_bind, sizeof(descriptor));
5803+
keybind, auto_bind,
5804+
&input_config_bind_labels[p][retro_id],
5805+
&input_autoconf_bind_labels[p][retro_id],
5806+
sizeof(descriptor));
58045807

58055808
const struct retro_keybind *keyptr =
58065809
&input_config_binds[p][retro_id];

0 commit comments

Comments
 (0)