mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-27 19:26:38 +00:00
(Xbox 1/RMenu) VLAs don't work here
This commit is contained in:
parent
aae20990b6
commit
3eceb86ffa
@ -1567,7 +1567,7 @@ static void settings_iterate(menu *current_menu, item *items, settings_action_t
|
||||
|
||||
static void select_setting(menu *current_menu, uint64_t input)
|
||||
{
|
||||
item items[current_menu->max_settings];
|
||||
item *items = (item*)malloc(current_menu->max_settings * sizeof(*items));
|
||||
unsigned i;
|
||||
char msg[256];
|
||||
|
||||
@ -1631,6 +1631,8 @@ static void select_setting(menu *current_menu, uint64_t input)
|
||||
}
|
||||
}
|
||||
|
||||
free(items);
|
||||
|
||||
snprintf(msg, sizeof(msg), "[%s] + [%s] - resume game | [%s] - go forward", rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_L3), rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_R3), rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_R));
|
||||
context->render_msg(default_pos.x_position, default_pos.comment_two_y_position, default_pos.font_size, YELLOW, msg);
|
||||
snprintf(msg, sizeof(msg), "[%s] - default | [%s]/[%s] - go back", rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_START), rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_L), rarch_input_find_platform_key_label(1 << RETRO_DEVICE_ID_JOYPAD_A));
|
||||
|
Loading…
Reference in New Issue
Block a user