mirror of https://github.com/snes9xgit/snes9x.git
Gtk: Use translated binding names in preferences.
This commit is contained in:
parent
26291d185d
commit
5157426cb6
|
@ -904,14 +904,14 @@ void Snes9xPreferences::bindings_to_dialog(int joypad)
|
||||||
|
|
||||||
for (int i = 0; i < NUM_JOYPAD_LINKS; i++)
|
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];
|
auto shortcut_names = &b_links[NUM_JOYPAD_LINKS];
|
||||||
|
|
||||||
for (int i = 0; shortcut_names[i].button_name; i++)
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue