mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Simplify input_config_get_prefix
This commit is contained in:
parent
b16f526540
commit
a204bcbf81
18
retroarch.c
18
retroarch.c
@ -25896,16 +25896,14 @@ static const char *input_config_get_prefix(unsigned user, bool meta)
|
||||
"input_player15",
|
||||
"input_player16",
|
||||
};
|
||||
const char *prefix = bind_user_prefix[user];
|
||||
|
||||
if (user == 0)
|
||||
return meta ? "input" : prefix;
|
||||
|
||||
if (!meta)
|
||||
return prefix;
|
||||
|
||||
/* Don't bother with meta bind for anyone else than first user. */
|
||||
return NULL;
|
||||
if (meta)
|
||||
{
|
||||
if (user == 0)
|
||||
return "input";
|
||||
/* Don't bother with meta bind for anyone else than first user. */
|
||||
return NULL;
|
||||
}
|
||||
return bind_user_prefix[user];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user