mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-12 20:58:18 +00:00
Some C89_BUILD fixes
This commit is contained in:
parent
5b8661b6b5
commit
df948215af
@ -32,15 +32,19 @@ static bool remote_is_bound = false;
|
||||
/* adds an index for devices with the same name so they can be identified in the GUI*/
|
||||
static void input_reindex_devices()
|
||||
{
|
||||
unsigned i;
|
||||
settings_t *settings = config_get_ptr();
|
||||
for(int i=0; i < settings->input.max_users; i++)
|
||||
settings->input.device_name_index[i]=0;
|
||||
for(int i=0; i < settings->input.max_users; i++)
|
||||
{
|
||||
const char *tmp = settings->input.device_names[i];
|
||||
|
||||
int k=1;
|
||||
for(int j=0; j < settings->input.max_users; j++)
|
||||
for(i=0; i < settings->input.max_users; i++)
|
||||
settings->input.device_name_index[i]=0;
|
||||
|
||||
for(i=0; i < settings->input.max_users; i++)
|
||||
{
|
||||
unsigned j;
|
||||
const char *tmp = settings->input.device_names[i];
|
||||
int k = 1;
|
||||
|
||||
for(j = 0; j < settings->input.max_users; j++)
|
||||
{
|
||||
if(!strcmp(tmp,settings->input.device_names[j]) && settings->input.device_name_index[i]==0)
|
||||
settings->input.device_name_index[j]=k++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user