This commit is contained in:
twinaphex 2017-09-18 16:18:25 +02:00
parent 49cf80db10
commit e931bad7d1

View File

@ -106,12 +106,12 @@ int action_right_cheat(unsigned type, const char *label,
int action_right_input_desc_kbd(unsigned type, const char *label,
bool wraparound)
{
settings_t *settings = config_get_ptr();
unsigned key_id;
unsigned offset = type - MENU_SETTINGS_INPUT_DESC_KBD_BEGIN;
unsigned remap_id =
settings->uints.input_keymapper_ids[offset];
char desc[PATH_MAX_LENGTH];
unsigned offset = type - MENU_SETTINGS_INPUT_DESC_KBD_BEGIN;
settings_t *settings = config_get_ptr();
unsigned remap_id =
settings->uints.input_keymapper_ids[offset];
if (!settings)
return 0;